diff options
| author | Joe Perches <[email protected]> | 2020-03-12 22:50:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-03-12 22:55:00 +0000 |
| commit | a8eceea84a3a3504e42f6495cf462027c5d19cb0 (patch) | |
| tree | 92f4728df4a8ed84b3cafe6564d0b30587ea0bf7 /net/ipv4/udp.c | |
| parent | octeontx2-pf: unlock on error path in otx2_config_pause_frm() (diff) | |
| download | kernel-a8eceea84a3a3504e42f6495cf462027c5d19cb0.tar.gz kernel-a8eceea84a3a3504e42f6495cf462027c5d19cb0.zip | |
inet: Use fallthrough;
Convert the various uses of fallthrough comments to fallthrough;
Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/
And by hand:
net/ipv6/ip6_fib.c has a fallthrough comment outside of an #ifdef block
that causes gcc to emit a warning if converted in-place.
So move the new fallthrough; inside the containing #ifdef/#endif too.
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/udp.c')
| -rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index a68e2ac37f26..2633fc231593 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -2563,7 +2563,7 @@ int udp_lib_setsockopt(struct sock *sk, int level, int optname, case UDP_ENCAP_ESPINUDP_NON_IKE: up->encap_rcv = xfrm4_udp_encap_rcv; #endif - /* FALLTHROUGH */ + fallthrough; case UDP_ENCAP_L2TPINUDP: up->encap_type = val; lock_sock(sk); |
