]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: Remove unnecessary variables
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 26 Oct 2015 17:57:20 +0000 (23:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:00:47 +0000 (17:00 +0900)
commite3aabf5100a2094173021f995789a585ad57c9c5
treecd1a710968ddee8b280afeb6462a249187d837d6
parent60762d9f9513eacdaf1622093838f98226f408a8
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>
drivers/staging/rtl8188eu/hal/fw.c