mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 03:51:48 +00:00
4764ca981b
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. Verified by compilation only. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
rtl8192e | ||
dot11d.c | ||
dot11d.h | ||
Kconfig | ||
license | ||
Makefile | ||
rtl819x_BA.h | ||
rtl819x_BAProc.c | ||
rtl819x_HT.h | ||
rtl819x_HTProc.c | ||
rtl819x_Qos.h | ||
rtl819x_TS.h | ||
rtl819x_TSProc.c | ||
rtllib_crypt_ccmp.c | ||
rtllib_crypt_tkip.c | ||
rtllib_crypt_wep.c | ||
rtllib_crypt.c | ||
rtllib_crypt.h | ||
rtllib_debug.h | ||
rtllib_endianfree.h | ||
rtllib_module.c | ||
rtllib_rx.c | ||
rtllib_softmac_wx.c | ||
rtllib_softmac.c | ||
rtllib_tx.c | ||
rtllib_wx.c | ||
rtllib.h | ||
TODO |