packet: remove unnecessary break after return
authorFabian Frederick <fabf@skynet.be>
Mon, 14 Jul 2014 16:30:51 +0000 (18:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2014 23:26:59 +0000 (16:26 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

index b85c67ccb797197abf51596ac5f3044131aa97d8..614ca91f785aa4c5006a086cbfd3ee2e25462c7a 100644 (file)
@@ -3071,10 +3071,8 @@ static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i,
                break;
        case PACKET_MR_PROMISC:
                return dev_set_promiscuity(dev, what);
-               break;
        case PACKET_MR_ALLMULTI:
                return dev_set_allmulti(dev, what);
-               break;
        case PACKET_MR_UNICAST:
                if (i->alen != dev->addr_len)
                        return -EINVAL;