diff options
author | 2016-02-25 17:22:11 +0530 | |
---|---|---|
committer | 2016-03-11 22:09:09 -0800 | |
commit | 6d210eef1b31b02ebec37a2ced6e73a1f94aacf1 (patch) | |
tree | 861882e7e79f830d8d0d51ce731cf6db18b84155 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: rdma: hfi1: Remove unnecessary pci_set_drvdata() (diff) | |
download | wireguard-linux-6d210eef1b31b02ebec37a2ced6e73a1f94aacf1.tar.xz wireguard-linux-6d210eef1b31b02ebec37a2ced6e73a1f94aacf1.zip |
staging: rdma: hfi1: 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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions