diff options
author | Joe Perches <joe@perches.com> | 2020-03-12 15:50:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 15:55:00 -0700 |
commit | a8eceea84a3a3504e42f6495cf462027c5d19cb0 (patch) | |
tree | 92f4728df4a8ed84b3cafe6564d0b30587ea0bf7 /net/ipv6/route.c | |
parent | 8a765471a65ebc81d8905c94648f3143e720cdec (diff) | |
download | lwn-a8eceea84a3a3504e42f6495cf462027c5d19cb0.tar.gz lwn-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 <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 2931224b674e..2430c2f6819a 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -4370,7 +4370,7 @@ static int ip6_pkt_drop(struct sk_buff *skb, u8 code, int ipstats_mib_noroutes) IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS); break; } - /* FALLTHROUGH */ + fallthrough; case IPSTATS_MIB_OUTNOROUTES: IP6_INC_STATS(net, idev, ipstats_mib_noroutes); break; |