diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-26 17:55:59 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 07:58:00 (GMT) |
commit | b85f3d4e58379e523b06d9725f26f0a0566a1727 (patch) | |
tree | 7beda03a68a9de26c977c0a52d8e644e1747a57a /sound/sparc | |
parent | f0d97eb5c0c889fc68eb97885d488c3842e296da (diff) | |
download | linux-b85f3d4e58379e523b06d9725f26f0a0566a1727.tar.xz |
staging: rtl8712: Remove unnecessary variables
Remove unnecessary variables 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 'sound/sparc')
0 files changed, 0 insertions, 0 deletions