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

net: plip: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
71ae2cb3 90d181ca

+2
+2
drivers/net/plip/plip.c
··· 516 516 *data_p |= (c0 << 1) & 0xf0; 517 517 write_data (dev, 0x00); /* send ACK */ 518 518 *ns_p = PLIP_NB_BEGIN; 519 + break; 519 520 case PLIP_NB_2: 520 521 break; 521 522 } ··· 809 808 return HS_TIMEOUT; 810 809 } 811 810 } 811 + break; 812 812 813 813 case PLIP_PK_LENGTH_LSB: 814 814 if (plip_send(nibble_timeout, dev,