mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
net: 8390: pcnet_cs: mark expected switch fall-through
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>
This commit is contained in:
parent
2d91914968
commit
75d28f461e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user