diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-14 12:36:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-15 19:27:01 -0400 |
commit | 138ce9102468ef3ad42214b2878004522f357a2a (patch) | |
tree | 7c0f98ff939fc46e4bfb19b24374eed87a49a2e0 /net/sctp | |
parent | 84dbee1869668284fb5e1008c8ee0710d9c23709 (diff) |
net: sctp: remove unnecessary break after return/goto
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/outqueue.c | 1 | ||||
-rw-r--r-- | net/sctp/sm_statefuns.c | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 9c77947c0597..d31435e559b2 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -1025,7 +1025,6 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout) | |||
1025 | 1025 | ||
1026 | sctp_outq_head_data(q, chunk); | 1026 | sctp_outq_head_data(q, chunk); |
1027 | goto sctp_flush_out; | 1027 | goto sctp_flush_out; |
1028 | break; | ||
1029 | 1028 | ||
1030 | case SCTP_XMIT_OK: | 1029 | case SCTP_XMIT_OK: |
1031 | /* The sender is in the SHUTDOWN-PENDING state, | 1030 | /* The sender is in the SHUTDOWN-PENDING state, |
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 5170a1ff95a1..d3f1ea460c50 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -4182,7 +4182,6 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net, | |||
4182 | case SCTP_CID_ACTION_DISCARD: | 4182 | case SCTP_CID_ACTION_DISCARD: |
4183 | /* Discard the packet. */ | 4183 | /* Discard the packet. */ |
4184 | return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); | 4184 | return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); |
4185 | break; | ||
4186 | case SCTP_CID_ACTION_DISCARD_ERR: | 4185 | case SCTP_CID_ACTION_DISCARD_ERR: |
4187 | /* Generate an ERROR chunk as response. */ | 4186 | /* Generate an ERROR chunk as response. */ |
4188 | hdr = unk_chunk->chunk_hdr; | 4187 | hdr = unk_chunk->chunk_hdr; |
@@ -4198,11 +4197,9 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net, | |||
4198 | /* Discard the packet. */ | 4197 | /* Discard the packet. */ |
4199 | sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); | 4198 | sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); |
4200 | return SCTP_DISPOSITION_CONSUME; | 4199 | return SCTP_DISPOSITION_CONSUME; |
4201 | break; | ||
4202 | case SCTP_CID_ACTION_SKIP: | 4200 | case SCTP_CID_ACTION_SKIP: |
4203 | /* Skip the chunk. */ | 4201 | /* Skip the chunk. */ |
4204 | return SCTP_DISPOSITION_DISCARD; | 4202 | return SCTP_DISPOSITION_DISCARD; |
4205 | break; | ||
4206 | case SCTP_CID_ACTION_SKIP_ERR: | 4203 | case SCTP_CID_ACTION_SKIP_ERR: |
4207 | /* Generate an ERROR chunk as response. */ | 4204 | /* Generate an ERROR chunk as response. */ |
4208 | hdr = unk_chunk->chunk_hdr; | 4205 | hdr = unk_chunk->chunk_hdr; |
@@ -4216,7 +4213,6 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net, | |||
4216 | } | 4213 | } |
4217 | /* Skip the chunk. */ | 4214 | /* Skip the chunk. */ |
4218 | return SCTP_DISPOSITION_CONSUME; | 4215 | return SCTP_DISPOSITION_CONSUME; |
4219 | break; | ||
4220 | default: | 4216 | default: |
4221 | break; | 4217 | break; |
4222 | } | 4218 | } |