2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/staging/vt6655
Peter Senna Tschudin c804f5920c staging: vt6655: 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
- return ret;
+ return C;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-23 21:35:27 +09:00
..
80211hdr.h vt6655: balance faulty parentheses in 80211hdr.h 2014-01-08 11:04:46 -08:00
80211mgr.c staging: vt6655: Fix line over 80 characters. 2014-03-16 19:45:52 -07:00
80211mgr.h
aes_ccmp.c staging: vt6655: Remove unnecessary braces in aes_ccmp.c 2014-03-16 19:37:23 -07:00
aes_ccmp.h
baseband.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
baseband.h
bssdb.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
bssdb.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
card.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
card.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
channel.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
channel.h
country.h
datarate.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
datarate.h
desc.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
device_cfg.h
device_main.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
device.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
dpc.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
dpc.h
hostap.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
hostap.h
IEEE11h.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
IEEE11h.h
iocmd.h
ioctl.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
ioctl.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iowpa.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iwctl.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
iwctl.h
Kconfig
key.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
key.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
mac.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mac.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
Makefile
mib.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mib.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
michael.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
michael.h staging: vt6655: 64 bit fixes :TKIP mode micheal.c sizeof long. 2014-03-08 22:31:31 -08:00
power.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
power.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
rc4.c
rc4.h
rf.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rf.h
rxtx.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rxtx.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
srom.c
srom.h
tcrc.c
tcrc.h
test
tether.c Staging: vt6655: tether: fixed a brace coding style issue 2014-05-15 13:23:03 -07:00
tether.h
tkip.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
tkip.h
tmacro.h
TODO
ttype.h
upc.h
vntconfiguration.dat
vntwifi.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
vntwifi.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wcmd.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wcmd.h
wctl.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wctl.h
wmgr.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wmgr.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa2.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wpa2.h
wpa.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa.h
wpactl.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
wpactl.h vt6655: remove typedefs in wpactl.h 2014-01-08 11:05:20 -08:00
wroute.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wroute.h