Commit a20961cc authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

net: smc911x: Mark expected switch fall-through

Mark switch cases where we are expecting to fall through.

This patch fixes the following warning (Building: arm):

drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_phy_detect’:
drivers/net/ethernet/smsc/smc911x.c:677:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if (cfg & HW_CFG_EXT_PHY_DET_) {
       ^
drivers/net/ethernet/smsc/smc911x.c:715:3: note: here
   default:
   ^~~~~~~
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7bd6ba4e
...@@ -712,6 +712,7 @@ static void smc911x_phy_detect(struct net_device *dev) ...@@ -712,6 +712,7 @@ static void smc911x_phy_detect(struct net_device *dev)
/* Found an external PHY */ /* Found an external PHY */
break; break;
} }
/* Else, fall through */
default: default:
/* Internal media only */ /* Internal media only */
SMC_GET_PHY_ID1(lp, 1, id1); SMC_GET_PHY_ID1(lp, 1, id1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment