summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-26 23:27:20 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-27 17:00:47 +0900
commitf79dc1679aff988297e020759c413f014a770aa9 (patch)
treecd1a710968ddee8b280afeb6462a249187d837d6 /tools/perf/scripts/python
parentd743db9f053f8d95f0cbd2470aea39d225ac4f9e (diff)
staging: rtl8188eu: Remove unnecessary variables
Remove unnecessary variable that can be replaced with a single line of code. The semantic patch used to find this is: // <smpl> @@ expression ret; @@ - if (ret) return ret; - return 0; + return ret; @@ local idexpression ret; expression e; @@ - ret = e; - return ret; + return e; @@ type T; identifier i; expression E; @@ - T i = E; ... when != i @@ type T; identifier i; @@ - T i; ... when != i // </smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions