diff options
author | Joe Perches <joe@perches.com> | 2010-05-18 02:08:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 02:23:14 -0400 |
commit | 3fa21e07e6acefa31f974d57fba2b6920a7ebd1a (patch) | |
tree | 4254644ef2579e9ac96db6ec0535b5e4231fd18e /net/irda/irnet | |
parent | b60b6592baa69c43a5a0f55d6300a7feaab15338 (diff) |
net: Remove unnecessary returns from void function()s
This patch removes from net/ (but not any 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irnet')
-rw-r--r-- | net/irda/irnet/irnet_irda.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/irda/irnet/irnet_irda.c b/net/irda/irnet/irnet_irda.c index df18ab4b6c5e..e98e40d76f4f 100644 --- a/net/irda/irnet/irnet_irda.c +++ b/net/irda/irnet/irnet_irda.c | |||
@@ -678,7 +678,6 @@ irda_irnet_destroy(irnet_socket * self) | |||
678 | self->stsap_sel = 0; | 678 | self->stsap_sel = 0; |
679 | 679 | ||
680 | DEXIT(IRDA_SOCK_TRACE, "\n"); | 680 | DEXIT(IRDA_SOCK_TRACE, "\n"); |
681 | return; | ||
682 | } | 681 | } |
683 | 682 | ||
684 | 683 | ||
@@ -928,7 +927,6 @@ irnet_disconnect_server(irnet_socket * self, | |||
928 | irttp_listen(self->tsap); | 927 | irttp_listen(self->tsap); |
929 | 928 | ||
930 | DEXIT(IRDA_SERV_TRACE, "\n"); | 929 | DEXIT(IRDA_SERV_TRACE, "\n"); |
931 | return; | ||
932 | } | 930 | } |
933 | 931 | ||
934 | /*------------------------------------------------------------------*/ | 932 | /*------------------------------------------------------------------*/ |
@@ -1013,7 +1011,6 @@ irnet_destroy_server(void) | |||
1013 | irda_irnet_destroy(&irnet_server.s); | 1011 | irda_irnet_destroy(&irnet_server.s); |
1014 | 1012 | ||
1015 | DEXIT(IRDA_SERV_TRACE, "\n"); | 1013 | DEXIT(IRDA_SERV_TRACE, "\n"); |
1016 | return; | ||
1017 | } | 1014 | } |
1018 | 1015 | ||
1019 | 1016 | ||