diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-08 01:15:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-08 02:54:19 +0200 |
commit | 10c7666e70d979d78bf6b8c1b6ab6dd68cd0d96b (patch) | |
tree | 9b0d0923bf53b3fe9c36601c27957b7106828b4b | |
parent | net: thunderx: mark expected switch fall-through (diff) | |
download | linux-10c7666e70d979d78bf6b8c1b6ab6dd68cd0d96b.tar.xz linux-10c7666e70d979d78bf6b8c1b6ab6dd68cd0d96b.zip |
net: tulip_core: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114782 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/dec/tulip/tulip_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c index 00d02a0967d0..3e3e08698876 100644 --- a/drivers/net/ethernet/dec/tulip/tulip_core.c +++ b/drivers/net/ethernet/dec/tulip/tulip_core.c @@ -923,6 +923,7 @@ static int private_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) data->phy_id = 1; else return -ENODEV; + /* Fall through */ case SIOCGMIIREG: /* Read MII PHY register. */ if (data->phy_id == 32 && (tp->flags & HAS_NWAY)) { |