kernel_optimize_test/drivers/net/ehea
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
..
ehea_ethtool.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
ehea_hw.h ehea: fix ehea.h checkpatch complaints 2008-02-03 04:25:55 -08:00
ehea_main.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
ehea_phyp.c net/ehea: use consistant type 2009-01-06 10:47:16 -08:00
ehea_phyp.h powerpc: Move ehea hcall definitions into hvcall.h 2009-11-24 14:33:03 +11:00
ehea_qmr.c ehea: error handling improvement 2010-04-21 22:32:43 -07:00
ehea_qmr.h ehea: error handling improvement 2010-04-21 22:32:43 -07:00
ehea.h ehea: fix possible DLPAR/mem deadlock 2010-04-21 22:32:44 -07:00
Makefile