diff options
author | Simran Singhal <singhalsimran0@gmail.com> | 2020-03-26 00:22:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-26 10:37:38 +0300 |
commit | 1b590af9fa2d7d8407c4e780eb506d536157d36b (patch) | |
tree | 4231f37118ccf4f09b1339e21772ccd4cdf92963 /tools/perf/scripts/python/stackcollapse.py | |
parent | f465b0a4e502756724009fc1a35fb3319ce38d25 (diff) | |
download | linux-1b590af9fa2d7d8407c4e780eb506d536157d36b.tar.xz |
staging: rtl8723bs: rtw_cmd: Compress lines for immediate return
Compress two lines into a single line if immediate return statement is found.
It also removes variable cmd_obj as it is no longer needed.
It is done using script Coccinelle.
And coccinelle uses following semantic patch for this compression function:
@@
expression ret;
identifier f;
@@
-ret =
+return
f(...);
-return ret;
Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200325212253.GA8175@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions