[PATCH] net: decnet: dn_nsp_in: mark expected switch fall-through

Subsystems: networking [general], the rest

STALE2963d

2 messages, 2 authors, 2018-07-05 · open the first message on its own page

[PATCH] net: decnet: dn_nsp_in: mark expected switch fall-through

From: Gustavo A. R. Silva <hidden>
Date: 2018-07-04 22:05:52

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

Signed-off-by: Gustavo A. R. Silva <redacted>
---
 net/decnet/dn_nsp_in.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/net/decnet/dn_nsp_in.c b/net/decnet/dn_nsp_in.c
index 1b212064..34aba55 100644
--- a/net/decnet/dn_nsp_in.c
+++ b/net/decnet/dn_nsp_in.c
@@ -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;
 	}
-- 
2.7.4

Re: [PATCH] net: decnet: dn_nsp_in: mark expected switch fall-through

From: David Miller <davem@davemloft.net>
Date: 2018-07-05 11:27:22

From: "Gustavo A. R. Silva" <redacted>
Date: Wed, 4 Jul 2018 17:05:00 -0500
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help