summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 19:38:20 +0100
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-05-18 02:57:18 +0200
commit5af5a020ddd10afc6caff05b4c941c2b1c17bf1d (patch)
tree58f849bafdb3f8d3dade5fea889f4752f044b178 /net/packet/af_packet.c
parentnet: netrom: Fix fall-through warnings for Clang (diff)
downloadlinux-5af5a020ddd10afc6caff05b4c941c2b1c17bf1d.tar.xz
linux-5af5a020ddd10afc6caff05b4c941c2b1c17bf1d.zip
net/packet: 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 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>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index ba96db1880ea..bfd805d6d79d 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1655,6 +1655,7 @@ static int fanout_add(struct sock *sk, struct fanout_args *args)
case PACKET_FANOUT_ROLLOVER:
if (type_flags & PACKET_FANOUT_FLAG_ROLLOVER)
return -EINVAL;
+ break;
case PACKET_FANOUT_HASH:
case PACKET_FANOUT_LB:
case PACKET_FANOUT_CPU: