diff options
author | Johanna Abrahamsson <johanna@mjao.org> | 2016-08-23 22:41:54 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-01 15:39:29 (GMT) |
commit | 450524614bd2fc05239dd6186eb6d0deec483c24 (patch) | |
tree | 88cf2b6a5c76e6eb834b63e0a8aa65332cc55d4d | |
parent | 679011bd69efd7d9a3d4984fadbe0bc544773455 (diff) | |
download | linux-450524614bd2fc05239dd6186eb6d0deec483c24.tar.xz |
staging: android: ion: Remove ret variable in ion_handle_put_nolock
It is not necessary to save the return value of kref_put since it is directly
returned.
Signed-off-by: Johanna Abrahamsson <johanna@mjao.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/android/ion/ion.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index deaa93a..2671f9f 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -383,11 +383,7 @@ static void ion_handle_get(struct ion_handle *handle) static int ion_handle_put_nolock(struct ion_handle *handle) { - int ret; - - ret = kref_put(&handle->ref, ion_handle_destroy); - - return ret; + return kref_put(&handle->ref, ion_handle_destroy); } static int ion_handle_put(struct ion_handle *handle) |