1
linux/drivers/net/phy
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
..
bcm63xx.c PHY: fix typo in bcm63xx PHY driver table 2010-04-13 03:29:36 -07:00
broadcom.c phylib: Add module table to all existing phy drivers 2010-04-02 14:30:40 -07:00
cicada.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
davicom.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
et1011c.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
fixed.c
icplus.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
Kconfig drivers/net/phy: micrel phy driver 2010-05-03 15:43:26 -07:00
lxt.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
Makefile drivers/net/phy: micrel phy driver 2010-05-03 15:43:26 -07:00
marvell.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
mdio_bus.c
mdio-bitbang.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
mdio-gpio.c
mdio-octeon.c NET: mdio-octeon: Enable the hardware before using it. 2010-04-30 20:52:52 +01:00
micrel.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-05-12 00:05:35 -07:00
national.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
phy_device.c phylib: Support phy module autoloading 2010-04-02 14:30:39 -07:00
phy.c
qsemi.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
realtek.c phylib: Add module table to all existing phy drivers 2010-04-02 14:30:40 -07:00
smsc.c phylib: Add module table to all existing phy drivers 2010-04-02 14:30:40 -07:00
ste10Xp.c phylib: Add module table to all existing phy drivers 2010-04-02 14:30:40 -07:00
vitesse.c phylib: Add module table to all existing phy drivers 2010-04-02 14:30:40 -07:00