diff options
author | Joe Perches <joe@perches.com> | 2010-05-13 09:16:27 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-05-13 09:16:27 -0400 |
commit | 736d58e3a2245ac2779fe0f278f8735bcf33ca8d (patch) | |
tree | 7a0faa6b12ea56ae66dae40f8649649115247234 /net/ipv4 | |
parent | 654d0fbdc8fe1041918741ed5b6abc8ad6b4c1d8 (diff) |
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ip_queue.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c index c838238104f5..a4e5fc5df4bf 100644 --- a/net/ipv4/netfilter/ip_queue.c +++ b/net/ipv4/netfilter/ip_queue.c | |||
@@ -461,7 +461,6 @@ __ipq_rcv_skb(struct sk_buff *skb) | |||
461 | 461 | ||
462 | if (flags & NLM_F_ACK) | 462 | if (flags & NLM_F_ACK) |
463 | netlink_ack(skb, nlh, 0); | 463 | netlink_ack(skb, nlh, 0); |
464 | return; | ||
465 | } | 464 | } |
466 | 465 | ||
467 | static void | 466 | static void |