projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c467bf
)
net: netrom: nr_in: mark expected switch fall-through
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Thu, 19 Oct 2017 17:43:08 +0000
(12:43 -0500)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 Oct 2017 01:00:33 +0000
(
02:00
+0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/nr_in.c
patch
|
blob
|
history
diff --git
a/net/netrom/nr_in.c
b/net/netrom/nr_in.c
index 80dbd0beb51675f53a91f930cec7a1c143d28fac..fbfdae452ff9a5e7a6326cf11adb3f142d17d81a 100644
(file)
--- a/
net/netrom/nr_in.c
+++ b/
net/netrom/nr_in.c
@@
-125,7
+125,7
@@
static int nr_state2_machine(struct sock *sk, struct sk_buff *skb,
case NR_DISCREQ:
nr_write_internal(sk, NR_DISCACK);
-
+ /* fall through */
case NR_DISCACK:
nr_disconnect(sk, 0);
break;