OpenCloudOS-Kernel/drivers/net/wireless/brcm80211
Peter Senna Tschudin 12f3237006 net: wireless: Remove useless return variables
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

wl_cfg80211.c verified by compilation only.
phy/phy_cmn.c unverified.

The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
    when strict
return
- ret
+ C
;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-06-19 15:49:11 -04:00
..
brcmfmac net: wireless: Remove useless return variables 2014-06-19 15:49:11 -04:00
brcmsmac net: wireless: Remove useless return variables 2014-06-19 15:49:11 -04:00
brcmutil brcmutil: assure unused bits are cleared in 11n chanspec 2014-05-29 13:10:25 -04:00
include brcm80211: extend channel conversion functions for 80MHz support 2014-05-13 15:56:49 -04:00
Kconfig Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-12-06 09:50:45 -05:00
Makefile brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00