Commit 86e58cce authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

decnet: af_decnet: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 54e6d7be
...@@ -630,10 +630,12 @@ static void dn_destroy_sock(struct sock *sk) ...@@ -630,10 +630,12 @@ static void dn_destroy_sock(struct sock *sk)
goto disc_reject; goto disc_reject;
case DN_RUN: case DN_RUN:
scp->state = DN_DI; scp->state = DN_DI;
/* fall through */
case DN_DI: case DN_DI:
case DN_DR: case DN_DR:
disc_reject: disc_reject:
dn_nsp_send_disc(sk, NSP_DISCINIT, 0, sk->sk_allocation); dn_nsp_send_disc(sk, NSP_DISCINIT, 0, sk->sk_allocation);
/* fall through */
case DN_NC: case DN_NC:
case DN_NR: case DN_NR:
case DN_RJ: case DN_RJ:
...@@ -647,6 +649,7 @@ static void dn_destroy_sock(struct sock *sk) ...@@ -647,6 +649,7 @@ static void dn_destroy_sock(struct sock *sk)
break; break;
default: default:
printk(KERN_DEBUG "DECnet: dn_destroy_sock passed socket in invalid state\n"); printk(KERN_DEBUG "DECnet: dn_destroy_sock passed socket in invalid state\n");
/* fall through */
case DN_O: case DN_O:
dn_stop_slow_timer(sk); dn_stop_slow_timer(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment