OSDN Git Service

net: netrom: nr_in: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 19 Oct 2017 17:43:08 +0000 (12:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:00:33 +0000 (02:00 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/nr_in.c

index 80dbd0b..fbfdae4 100644 (file)
@@ -125,7 +125,7 @@ static int nr_state2_machine(struct sock *sk, struct sk_buff *skb,
 
        case NR_DISCREQ:
                nr_write_internal(sk, NR_DISCACK);
-
+               /* fall through */
        case NR_DISCACK:
                nr_disconnect(sk, 0);
                break;