mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 22:31:32 +00:00
netxen_nic: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1410182 ("Missing break in switch") Addresses-Coverity-ID: 1410183 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
53a42286f2
commit
fd3da12dba
@ -167,9 +167,9 @@ skip:
|
||||
case NETXEN_BRDTYPE_P3_REF_QG:
|
||||
case NETXEN_BRDTYPE_P3_4_GB:
|
||||
case NETXEN_BRDTYPE_P3_4_GB_MM:
|
||||
|
||||
supported |= SUPPORTED_Autoneg;
|
||||
advertising |= ADVERTISED_Autoneg;
|
||||
/* fall through */
|
||||
case NETXEN_BRDTYPE_P2_SB31_10G_CX4:
|
||||
case NETXEN_BRDTYPE_P3_10G_CX4:
|
||||
case NETXEN_BRDTYPE_P3_10G_CX4_LP:
|
||||
@ -198,6 +198,7 @@ skip:
|
||||
supported |= SUPPORTED_TP;
|
||||
check_sfp_module = netif_running(dev) &&
|
||||
adapter->has_link_events;
|
||||
/* fall through */
|
||||
case NETXEN_BRDTYPE_P2_SB31_10G:
|
||||
case NETXEN_BRDTYPE_P3_10G_XFP:
|
||||
supported |= SUPPORTED_FIBRE;
|
||||
|
Loading…
Reference in New Issue
Block a user