Skip to contentSkip to conversation

net: decnet: dn_nsp_in: mark expected switch fall-through

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Jul 4, 2018 – Jul 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: decnet: dn_nsp_in: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 net/decnet/dn_nsp_in.c | 1 +
 1 file changed, 1 insertion(+)
net/decnet/dn_nsp_in.c +1 -0
index 1b212064..34aba55 100644
@@ -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;
 	}
Signature · 1 line
2.7.4