linux/drivers/net/wireless/brcm80211/brcmsmac
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
..
phy net: wireless: Remove useless return variables 2014-06-19 15:49:11 -04:00
aiutils.c
aiutils.h
ampdu.c
ampdu.h
antsel.c
antsel.h
brcms_trace_events.c
brcms_trace_events.h
channel.c brcm80211: fix usage of freq_reg_info() 2013-12-05 14:54:49 -05:00
channel.h
d11.h
debug.c
debug.h
dma.c
dma.h
led.c
led.h
mac80211_if.c mac80211: add vif to flush call 2014-04-09 10:55:29 +02:00
mac80211_if.h
main.c brcmsmac: make return of 0 explicit 2014-05-19 16:42:15 -04:00
main.h
Makefile
phy_shim.c
phy_shim.h
pmu.c
pmu.h
pub.h
rate.c
rate.h
scb.h
stf.c
stf.h
types.h
ucode_loader.c
ucode_loader.h