Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/net/e1000e
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
..
82571.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
defines.h e1000e: fix checks for manageability enabled and management pass-through 2010-05-12 23:31:13 -07:00
e1000.h e1000e: save skb counts in TX to avoid cache misses 2010-05-05 21:11:25 -07:00
es2lan.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ethtool.c e1000e: bad state after running ethtool diagnostics with AMT enabled 2010-05-12 23:31:09 -07:00
hw.h e1000e: add PCI device id to enable support for 82567V-4 2010-05-12 23:31:15 -07:00
ich8lan.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
lib.c e1000e: fix checks for manageability enabled and management pass-through 2010-05-12 23:31:13 -07:00
Makefile
netdev.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
param.c e1000e: use static params to save stack space (part 2) 2010-05-12 23:31:09 -07:00
phy.c e1000e: Incorrect function pointer set for force_speed_duplex on 82577 2010-05-12 23:31:12 -07:00