remarkable-linux/drivers/staging/rtl8192u
Cristina Opriceana 6c14378eca Staging: rtl8192u: Remove unnecessary variable
This patch detects the cases in which a variable is not modified through
the code and it is used as a return value. The variable is detected and
removed by coccinelle using the following semantic patch:

@@ type T; expression expr; identifier r; constant c; @@

-T r = expr;
... when != r
    when strict
-return r;
+return expr;

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-16 15:54:13 +01:00
..
ieee80211 Staging: rtl8192u: Remove unnecessary variable 2015-03-16 15:54:13 +01:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c Staging: rtl9182u: r819xU_firmware: Replaced C99 comments with C89 2015-03-06 16:57:13 -08:00
r819xU_firmware.h staging: rtl8192u: Add space after enum definition 2014-10-20 10:29:15 +08:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c Staging: rtl8192u: Replace TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c Staging: rtl8192u: Simplify if condition. 2015-02-26 13:46:35 -08:00
r8190_rtl8256.h Staging: rtl8192u: Fix line over 80 characters 2015-03-01 17:07:05 -08:00
r8192U.h Staging: rtl8192u: Remove TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r8192U_core.c Staging: rtl8192u: Combine initialization using setup_timer 2015-03-16 15:54:13 +01:00
r8192U_dm.c Staging: rtl8192u: Combine initialization using setup_timer 2015-03-16 15:54:13 +01:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c Staging: rtl8192u: Replace printk() with netdev_dbg() 2015-03-01 17:07:05 -08:00
r8192U_wx.h Staging: rtl8192u: Fix comments 2015-03-01 17:07:05 -08:00