]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/ipv6/addrconf.c
inet: Use fallthrough;
[mirror_ubuntu-jammy-kernel.git] / net / ipv6 / addrconf.c
index cb493e15959c4d1bb68cf30f4099a8daa785bb84..c614249dfb7dc5688e1f990fd912888a7208fadf 100644 (file)
@@ -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)