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

phylink: mark expected switch fall-throughs in phylink_mii_ioctl

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1463447 ("Missing break in switch")
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 313c86da
...@@ -1296,6 +1296,7 @@ int phylink_mii_ioctl(struct phylink *pl, struct ifreq *ifr, int cmd) ...@@ -1296,6 +1296,7 @@ int phylink_mii_ioctl(struct phylink *pl, struct ifreq *ifr, int cmd)
switch (cmd) { switch (cmd) {
case SIOCGMIIPHY: case SIOCGMIIPHY:
mii->phy_id = pl->phydev->mdio.addr; mii->phy_id = pl->phydev->mdio.addr;
/* fall through */
case SIOCGMIIREG: case SIOCGMIIREG:
ret = phylink_phy_read(pl, mii->phy_id, mii->reg_num); ret = phylink_phy_read(pl, mii->phy_id, mii->reg_num);
...@@ -1318,6 +1319,7 @@ int phylink_mii_ioctl(struct phylink *pl, struct ifreq *ifr, int cmd) ...@@ -1318,6 +1319,7 @@ int phylink_mii_ioctl(struct phylink *pl, struct ifreq *ifr, int cmd)
switch (cmd) { switch (cmd) {
case SIOCGMIIPHY: case SIOCGMIIPHY:
mii->phy_id = 0; mii->phy_id = 0;
/* fall through */
case SIOCGMIIREG: case SIOCGMIIREG:
ret = phylink_mii_read(pl, mii->phy_id, mii->reg_num); ret = phylink_mii_read(pl, mii->phy_id, mii->reg_num);
......
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