net: sctp: remove unnecessary break after return/goto
authorFabian Frederick <fabf@skynet.be>
Mon, 14 Jul 2014 16:36:39 +0000 (18:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2014 23:27:01 +0000 (16:27 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c
net/sctp/sm_statefuns.c

index 9c77947c0597c1c2f646214584a8480e038105e9..d31435e559b23416371106f0a3b93948de420470 100644 (file)
@@ -1025,7 +1025,6 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
 
                                sctp_outq_head_data(q, chunk);
                                goto sctp_flush_out;
-                               break;
 
                        case SCTP_XMIT_OK:
                                /* The sender is in the SHUTDOWN-PENDING state,
index 5170a1ff95a1dba56ffafc30a9a4fdadf25ce1d4..d3f1ea460c500caf6e39c1a9b2f31f2de28f37a4 100644 (file)
@@ -4182,7 +4182,6 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net,
        case SCTP_CID_ACTION_DISCARD:
                /* Discard the packet.  */
                return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
-               break;
        case SCTP_CID_ACTION_DISCARD_ERR:
                /* Generate an ERROR chunk as response. */
                hdr = unk_chunk->chunk_hdr;
@@ -4198,11 +4197,9 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net,
                /* Discard the packet.  */
                sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
                return SCTP_DISPOSITION_CONSUME;
-               break;
        case SCTP_CID_ACTION_SKIP:
                /* Skip the chunk.  */
                return SCTP_DISPOSITION_DISCARD;
-               break;
        case SCTP_CID_ACTION_SKIP_ERR:
                /* Generate an ERROR chunk as response. */
                hdr = unk_chunk->chunk_hdr;
@@ -4216,7 +4213,6 @@ sctp_disposition_t sctp_sf_unk_chunk(struct net *net,
                }
                /* Skip the chunk.  */
                return SCTP_DISPOSITION_CONSUME;
-               break;
        default:
                break;
        }