net: ksz884x: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 2 Oct 2020 23:02:59 +0000 (18:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:33:23 +0000 (17:33 -0700)
Replace /* Fallthrough... */ comment with the new pseudo-keyword macro
fallthrough[1].

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ksz884x.c

index cefbb229800452bc056c75dec3040487a6344455..9ed264ed7070539d7c0c204999eaabf579ffd486 100644 (file)
@@ -5833,8 +5833,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
        /* Get address of MII PHY in use. */
        case SIOCGMIIPHY:
                data->phy_id = priv->id;
-
-               /* Fallthrough... */
+               fallthrough;
 
        /* Read MII PHY register. */
        case SIOCGMIIREG: