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/sunrpc/xprtsock.c | |
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/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 9847c30b5001..6e0df664b255 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1050,8 +1050,6 @@ static inline void xs_tcp_read_common(struct rpc_xprt *xprt, | |||
1050 | if (transport->tcp_flags & TCP_RCV_LAST_FRAG) | 1050 | if (transport->tcp_flags & TCP_RCV_LAST_FRAG) |
1051 | transport->tcp_flags &= ~TCP_RCV_COPY_DATA; | 1051 | transport->tcp_flags &= ~TCP_RCV_COPY_DATA; |
1052 | } | 1052 | } |
1053 | |||
1054 | return; | ||
1055 | } | 1053 | } |
1056 | 1054 | ||
1057 | /* | 1055 | /* |
@@ -2210,7 +2208,6 @@ static int bc_send_request(struct rpc_task *task) | |||
2210 | 2208 | ||
2211 | static void bc_close(struct rpc_xprt *xprt) | 2209 | static void bc_close(struct rpc_xprt *xprt) |
2212 | { | 2210 | { |
2213 | return; | ||
2214 | } | 2211 | } |
2215 | 2212 | ||
2216 | /* | 2213 | /* |
@@ -2220,7 +2217,6 @@ static void bc_close(struct rpc_xprt *xprt) | |||
2220 | 2217 | ||
2221 | static void bc_destroy(struct rpc_xprt *xprt) | 2218 | static void bc_destroy(struct rpc_xprt *xprt) |
2222 | { | 2219 | { |
2223 | return; | ||
2224 | } | 2220 | } |
2225 | 2221 | ||
2226 | static struct rpc_xprt_ops xs_udp_ops = { | 2222 | static struct rpc_xprt_ops xs_udp_ops = { |