]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8188eu: core: Remove useless return variables
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Fri, 26 Feb 2016 09:41:07 +0000 (15:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit235a01036200992e8719c1f41260b11930448b72
tree139d56c84b1c40b8ba5a30b48b7f37806e0bde32
parent92098c1f0b6ab8eac2ccb465435c2fbeae6f6f6e
staging: rtl8188eu: core: Remove useless return variables

This patch removes unnecessary return variables and compresses the
return logic.
The coccinelle script that finds and fixes this issue is:

@@ type T; identifier i,f; constant C; @@
- T i;
...when != i
when strict
( return -C;
|
- i =
+ return
f(...);
- return i;
)

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c