forked from Minki/linux
12f3237006
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> |
||
---|---|---|
.. | ||
phy | ||
aiutils.c | ||
aiutils.h | ||
ampdu.c | ||
ampdu.h | ||
antsel.c | ||
antsel.h | ||
brcms_trace_events.c | ||
brcms_trace_events.h | ||
channel.c | ||
channel.h | ||
d11.h | ||
debug.c | ||
debug.h | ||
dma.c | ||
dma.h | ||
led.c | ||
led.h | ||
mac80211_if.c | ||
mac80211_if.h | ||
main.c | ||
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 |