linux/drivers/staging/rtl8192e
Peter Senna Tschudin 4764ca981b drivers/staging: 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.

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>
2014-05-26 10:32:15 -07:00
..
rtl8192e drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
dot11d.c staging: rtl8192e: Fix quoted string split across lines 2014-03-18 12:19:32 -07:00
dot11d.h
Kconfig
license
Makefile
rtl819x_BA.h
rtl819x_BAProc.c staging: rtl8192e: A word in printk is split into 2 lines 2014-04-25 16:02:00 -07:00
rtl819x_HT.h
rtl819x_HTProc.c
rtl819x_Qos.h rtl8192e: Removing unused defines in rtl819x_Qos.h 2013-12-20 11:41:28 -08:00
rtl819x_TS.h
rtl819x_TSProc.c staging: rtl8192e: Fix typo in rtl8192e 2014-04-25 16:02:00 -07:00
rtllib_crypt_ccmp.c
rtllib_crypt_tkip.c Staging rtl8192e: Fixing checkpatch error in rtllib_crypt_tkip.c 2014-01-09 10:32:18 -08:00
rtllib_crypt_wep.c
rtllib_crypt.c Staging rtl8192e: Fixing checkpatch errors 2014-01-09 10:29:37 -08:00
rtllib_crypt.h
rtllib_debug.h Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing corresponding warning in rtllib_debug.h 2014-01-09 10:32:18 -08:00
rtllib_endianfree.h rlt8192e: Removing unused defines in rltlib_endianfree.h 2013-12-20 11:41:28 -08:00
rtllib_module.c
rtllib_rx.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_softmac_wx.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_softmac.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_tx.c Staging: rtl8192e: Fix Sparse Warning of invalid assignment in rtllib_tx.c 2014-03-07 16:13:39 -08:00
rtllib_wx.c
rtllib.h Staging rtl8192e: Fixing checkpatch errors 2014-01-09 10:29:37 -08:00
TODO