diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-02-25 11:54:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 06:09:09 (GMT) |
commit | dd28473385e78f94456fc66bd05c9d6db3febe13 (patch) | |
tree | 43cd3f4f23ebf6238cb3037aae86a0a9aa0d2850 /drivers/perf | |
parent | c1586b52ee509658265e44dc2395635edee3848a (diff) | |
download | linux-dd28473385e78f94456fc66bd05c9d6db3febe13.tar.xz |
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>
Diffstat (limited to 'drivers/perf')
0 files changed, 0 insertions, 0 deletions