Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: netrom: nr_in: mark expected switch fall-through

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>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
e28101a3 3c467bf3

+1 -1
+1 -1
net/netrom/nr_in.c
··· 125 125 126 126 case NR_DISCREQ: 127 127 nr_write_internal(sk, NR_DISCACK); 128 - 128 + /* fall through */ 129 129 case NR_DISCACK: 130 130 nr_disconnect(sk, 0); 131 131 break;