Skip to content

Commit

Permalink
net: decnet: dn_nsp_in: mark expected switch fall-through
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Jul 5, 2018
1 parent c53e0c7 commit 3cc87d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/decnet/dn_nsp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3cc87d0

Please sign in to comment.