linux/drivers/net/ixgb
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
..
ixgb_ee.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ixgb_ee.h ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_ethtool.c ixgb: Fix erroneous display of stats by ethtool -S 2009-10-13 11:48:29 -07:00
ixgb_hw.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ixgb_hw.h ixgb: Use pr_<level> and netdev_<level> 2010-04-27 12:53:30 -07:00
ixgb_ids.h ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_main.c ixgb: use DMA API instead of PCI DMA functions 2010-04-27 16:29:51 -07:00
ixgb_osdep.h ixgb: Use pr_<level> and netdev_<level> 2010-04-27 12:53:30 -07:00
ixgb_param.c ixgb: Use pr_<level> and netdev_<level> 2010-04-27 12:53:30 -07:00
ixgb.h ixgb: Use pr_<level> and netdev_<level> 2010-04-27 12:53:30 -07:00
Makefile ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00