staging: wilc1000: Remove useless return variables
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Wed, 24 Feb 2016 20:27:54 +0000 (01:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:29:41 +0000 (22:29 -0800)
commit0c9e21d397908201f28c5352cf05942d9954b736
tree3841deb3d2dbd3c94f5f7405dbe164ecbe680848
parent4b1e380bdb8224bfb42585d843700fee87377fea
staging: wilc1000: 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/wilc1000/wilc_wlan.c