mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
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>
This commit is contained in:
parent
6518e3fc97
commit
5af5a020dd
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue