OpenCloudOS-Kernel/drivers/net/wireless
Joe Perches a4b770972b drivers/net: Remove unnecessary returns from void function()s
This patch removes from drivers/net/ all the unnecessary
return; statements that precede the last closing brace of
void functions.

It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.

It also does not remove null void functions with return.

Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
  xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

with some cleanups by hand.

Compile tested x86 allmodconfig only.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-14 00:19:28 -07:00
..
ath drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
b43 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-05 16:14:16 -04:00
b43legacy Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-05 16:14:16 -04:00
hostap include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ipw2x00 drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
iwlwifi drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
iwmc3200wifi drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
libertas drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
libertas_tf drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
orinoco drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
p54 drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
prism54 drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
rt2x00 drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
rtl818x Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-11 14:24:55 -04:00
wl12xx drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
zd1211rw Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-04-11 14:53:53 -07:00
Kconfig wireless: depends on NET 2010-05-10 14:56:49 -04:00
Makefile
adm8211.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-04-11 14:53:53 -07:00
adm8211.h
airo.c airo : Print of firmware version 2010-03-15 15:28:20 -04:00
airo.h
airo_cs.c
at76c50x-usb.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
at76c50x-usb.h
atmel.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
atmel.h
atmel_cs.c
atmel_pci.c drivers/net/: use DEFINE_PCI_DEVICE_TABLE() 2010-01-07 23:54:26 -08:00
mac80211_hwsim.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-11 14:24:55 -04:00
mwl8k.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-05 16:14:16 -04:00
ray_cs.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ray_cs.h
rayctl.h
rndis_wlan.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-11 14:24:55 -04:00
wl3501.h
wl3501_cs.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
zd1201.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
zd1201.h