Skip to content

Commit 5af5a02

Browse files
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: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 6518e3f commit 5af5a02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/packet/af_packet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,7 @@ static int fanout_add(struct sock *sk, struct fanout_args *args)
16551655
case PACKET_FANOUT_ROLLOVER:
16561656
if (type_flags & PACKET_FANOUT_FLAG_ROLLOVER)
16571657
return -EINVAL;
1658+
break;
16581659
case PACKET_FANOUT_HASH:
16591660
case PACKET_FANOUT_LB:
16601661
case PACKET_FANOUT_CPU:

0 commit comments

Comments
 (0)