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
@ -3299,7 +3299,7 @@ static void addrconf_addr_gen(struct inet6_dev *idev, bool prefix_route)
|
||||
switch (idev->cnf.addr_gen_mode) {
|
||||
case IN6_ADDR_GEN_MODE_RANDOM:
|
||||
ipv6_gen_mode_random_init(idev);
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case IN6_ADDR_GEN_MODE_STABLE_PRIVACY:
|
||||
if (!ipv6_generate_stable_address(&addr, 0, idev))
|
||||
addrconf_add_linklocal(idev, &addr,
|
||||
@ -3517,9 +3517,7 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
|
||||
break;
|
||||
|
||||
run_pending = 1;
|
||||
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case NETDEV_UP:
|
||||
case NETDEV_CHANGE:
|
||||
if (dev->flags & IFF_SLAVE)
|
||||
|
Reference in New Issue
Block a user