]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: 8390: pcnet_cs: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 9 Nov 2017 03:44:38 +0000 (21:44 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:10:06 +0000 (19:10 +0900)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 114891
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/pcnet_cs.c

index eae9827035dcfe45e0dd2dbf9f524aee43e3ba73..bcad4a7fac9f57b0141712dd0aefc1d2d25845fc 100644 (file)
@@ -1107,6 +1107,7 @@ static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
     switch (cmd) {
     case SIOCGMIIPHY:
        data->phy_id = info->phy_id;
+       /* fall through */
     case SIOCGMIIREG:          /* Read MII PHY register. */
        data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f);
        return 0;