net: decnet: dn_nsp_in: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 4 Jul 2018 22:05:00 +0000 (17:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 11:25:29 +0000 (20:25 +0900)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_nsp_in.c

index 1b21206..34aba55 100644 (file)
@@ -491,6 +491,7 @@ static void dn_nsp_disc_conf(struct sock *sk, struct sk_buff *skb)
                break;
        case DN_RUN:
                sk->sk_shutdown |= SHUTDOWN_MASK;
+               /* fall through */
        case DN_CC:
                scp->state = DN_CN;
        }