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/sctp | |
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/sctp')
-rw-r--r-- | net/sctp/associola.c | 2 | ||||
-rw-r--r-- | net/sctp/outqueue.c | 2 | ||||
-rw-r--r-- | net/sctp/proc.c | 3 | ||||
-rw-r--r-- | net/sctp/sm_sideeffect.c | 4 | ||||
-rw-r--r-- | net/sctp/ulpqueue.c | 2 |
5 files changed, 0 insertions, 13 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 3912420cedcc..e41feff19e43 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -816,8 +816,6 @@ void sctp_assoc_del_nonprimary_peers(struct sctp_association *asoc, | |||
816 | if (t != primary) | 816 | if (t != primary) |
817 | sctp_assoc_rm_peer(asoc, t); | 817 | sctp_assoc_rm_peer(asoc, t); |
818 | } | 818 | } |
819 | |||
820 | return; | ||
821 | } | 819 | } |
822 | 820 | ||
823 | /* Engage in transport control operations. | 821 | /* Engage in transport control operations. |
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 5d057178ce0c..c04b2eb59186 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -80,7 +80,6 @@ static inline void sctp_outq_head_data(struct sctp_outq *q, | |||
80 | { | 80 | { |
81 | list_add(&ch->list, &q->out_chunk_list); | 81 | list_add(&ch->list, &q->out_chunk_list); |
82 | q->out_qlen += ch->skb->len; | 82 | q->out_qlen += ch->skb->len; |
83 | return; | ||
84 | } | 83 | } |
85 | 84 | ||
86 | /* Take data from the front of the queue. */ | 85 | /* Take data from the front of the queue. */ |
@@ -103,7 +102,6 @@ static inline void sctp_outq_tail_data(struct sctp_outq *q, | |||
103 | { | 102 | { |
104 | list_add_tail(&ch->list, &q->out_chunk_list); | 103 | list_add_tail(&ch->list, &q->out_chunk_list); |
105 | q->out_qlen += ch->skb->len; | 104 | q->out_qlen += ch->skb->len; |
106 | return; | ||
107 | } | 105 | } |
108 | 106 | ||
109 | /* | 107 | /* |
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 784bcc9a979d..61aacfbbaa92 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -181,7 +181,6 @@ static void * sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) | |||
181 | 181 | ||
182 | static void sctp_eps_seq_stop(struct seq_file *seq, void *v) | 182 | static void sctp_eps_seq_stop(struct seq_file *seq, void *v) |
183 | { | 183 | { |
184 | return; | ||
185 | } | 184 | } |
186 | 185 | ||
187 | 186 | ||
@@ -286,7 +285,6 @@ static void * sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) | |||
286 | 285 | ||
287 | static void sctp_assocs_seq_stop(struct seq_file *seq, void *v) | 286 | static void sctp_assocs_seq_stop(struct seq_file *seq, void *v) |
288 | { | 287 | { |
289 | return; | ||
290 | } | 288 | } |
291 | 289 | ||
292 | 290 | ||
@@ -409,7 +407,6 @@ static void *sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
409 | 407 | ||
410 | static void sctp_remaddr_seq_stop(struct seq_file *seq, void *v) | 408 | static void sctp_remaddr_seq_stop(struct seq_file *seq, void *v) |
411 | { | 409 | { |
412 | return; | ||
413 | } | 410 | } |
414 | 411 | ||
415 | static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) | 412 | static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) |
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 22e670200449..f5e5e27cac5e 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
@@ -892,8 +892,6 @@ static void sctp_cmd_process_fwdtsn(struct sctp_ulpq *ulpq, | |||
892 | sctp_walk_fwdtsn(skip, chunk) { | 892 | sctp_walk_fwdtsn(skip, chunk) { |
893 | sctp_ulpq_skip(ulpq, ntohs(skip->stream), ntohs(skip->ssn)); | 893 | sctp_ulpq_skip(ulpq, ntohs(skip->stream), ntohs(skip->ssn)); |
894 | } | 894 | } |
895 | |||
896 | return; | ||
897 | } | 895 | } |
898 | 896 | ||
899 | /* Helper function to remove the association non-primary peer | 897 | /* Helper function to remove the association non-primary peer |
@@ -912,8 +910,6 @@ static void sctp_cmd_del_non_primary(struct sctp_association *asoc) | |||
912 | sctp_assoc_del_peer(asoc, &t->ipaddr); | 910 | sctp_assoc_del_peer(asoc, &t->ipaddr); |
913 | } | 911 | } |
914 | } | 912 | } |
915 | |||
916 | return; | ||
917 | } | 913 | } |
918 | 914 | ||
919 | /* Helper function to set sk_err on a 1-1 style socket. */ | 915 | /* Helper function to set sk_err on a 1-1 style socket. */ |
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index 3a448536f0b6..c7f7e49609cb 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -955,7 +955,6 @@ void sctp_ulpq_skip(struct sctp_ulpq *ulpq, __u16 sid, __u16 ssn) | |||
955 | * ordering and deliver them if needed. | 955 | * ordering and deliver them if needed. |
956 | */ | 956 | */ |
957 | sctp_ulpq_reap_ordered(ulpq, sid); | 957 | sctp_ulpq_reap_ordered(ulpq, sid); |
958 | return; | ||
959 | } | 958 | } |
960 | 959 | ||
961 | static __u16 sctp_ulpq_renege_list(struct sctp_ulpq *ulpq, | 960 | static __u16 sctp_ulpq_renege_list(struct sctp_ulpq *ulpq, |
@@ -1064,7 +1063,6 @@ void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | |||
1064 | } | 1063 | } |
1065 | 1064 | ||
1066 | sk_mem_reclaim(asoc->base.sk); | 1065 | sk_mem_reclaim(asoc->base.sk); |
1067 | return; | ||
1068 | } | 1066 | } |
1069 | 1067 | ||
1070 | 1068 | ||