]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: android: ion: hisilicon: Remove useless return variables
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Thu, 25 Feb 2016 11:54:17 +0000 (17:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commitdd28473385e78f94456fc66bd05c9d6db3febe13
tree43cd3f4f23ebf6238cb3037aae86a0a9aa0d2850
parentc1586b52ee509658265e44dc2395635edee3848a
staging: android: ion: hisilicon: Remove useless return variables

This patch removes unnecessary return variables and compresses the
return logic.
The coccinelle script that finds and fixes this issue is:
@@ type T; identifier i,f; constant C; @@
- T i;
...when != i
when strict
( return -C;
|
- i =
+ return
f(...);
- return i;
)

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/hisilicon/hi6220_ion.c