]> git.baikalelectronics.ru Git - kernel.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)
commitf38a7d7b8388d35507a5b827673049884e8ba228
tree7beda03a68a9de26c977c0a52d8e644e1747a57a
parent30b34d9a593b3902031a321fbe267d466caea34c
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