aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohanna Abrahamsson <johanna@mjao.org>2016-08-24 00:41:54 +0200
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:37 +0200
commit52575664d47fde956ab9902f1bc506df6e4320a8 (patch)
tree13eea50b6bd395fd36345dc3a50df6cef334673e
parent8beb20c102f60ae941f4c0644e5100465bf09c9d (diff)
downloadandroid_kernel_m2note-52575664d47fde956ab9902f1bc506df6e4320a8.tar.gz
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. Change-Id: Id1d2447b4a7f7b802cc001ed78d235808b6dc9f2 Signed-off-by: Johanna Abrahamsson <johanna@mjao.org> Acked-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Corinna Vinschen <xda@vinschen.de>
-rwxr-xr-xdrivers/staging/android/ion/ion.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index d0871b408..51294b4aa 100755
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -451,11 +451,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);
}
int ion_handle_put(struct ion_handle *handle)