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

net: mscc: ocelot: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of just letting the code
fall through to the next case.

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

authored by

Gustavo A. R. Silva and committed by
David S. Miller
fdeadd6e 537a0c5c

+1
+1
drivers/net/ethernet/mscc/ocelot_vcap.c
··· 761 761 vcap_key_bytes_set(vcap, &data, VCAP_IS1_HK_ETYPE, 762 762 etype.value, etype.mask); 763 763 } 764 + break; 764 765 } 765 766 default: 766 767 break;