]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8712: Remove unnecessary variables
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 26 Oct 2015 17:55:59 +0000 (23:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 07:58:00 +0000 (16:58 +0900)
commitb85f3d4e58379e523b06d9725f26f0a0566a1727
tree7beda03a68a9de26c977c0a52d8e644e1747a57a
parentf0d97eb5c0c889fc68eb97885d488c3842e296da
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>
drivers/staging/rtl8712/rtl871x_mp.c