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>
This commit is contained in:
committed by
David S. Miller
parent
8a765471a6
commit
a8eceea84a
@@ -1962,7 +1962,7 @@ int fib_sync_down_dev(struct net_device *dev, unsigned long event, bool force)
|
||||
case NETDEV_DOWN:
|
||||
case NETDEV_UNREGISTER:
|
||||
nexthop_nh->fib_nh_flags |= RTNH_F_DEAD;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case NETDEV_CHANGE:
|
||||
nexthop_nh->fib_nh_flags |= RTNH_F_LINKDOWN;
|
||||
break;
|
||||
@@ -1984,7 +1984,7 @@ int fib_sync_down_dev(struct net_device *dev, unsigned long event, bool force)
|
||||
case NETDEV_DOWN:
|
||||
case NETDEV_UNREGISTER:
|
||||
fi->fib_flags |= RTNH_F_DEAD;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case NETDEV_CHANGE:
|
||||
fi->fib_flags |= RTNH_F_LINKDOWN;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user