]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: remove unnecessary returns from void function()s
authorJoe Perches <joe@perches.com>
Thu, 13 May 2010 13:16:27 +0000 (15:16 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 13 May 2010 13:16:27 +0000 (15:16 +0200)
commit272ffedba67f7b321e74975224c73ca9533a2220
tree7a0faa6b12ea56ae66dae40f8649649115247234
parent4b1a7ce6280264fa213a55a366a66c33f9ead412
netfilter: remove unnecessary returns from void function()s

This patch removes from net/ netfilter files
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.

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; }'

Signed-off-by: Joe Perches <joe@perches.com>
[Patrick: changed to keep return statements in otherwise empty function bodies]
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_queue.c
net/netfilter/xt_time.c