qlcnic: Mark expected switch fall-througs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1410181 ("Missing break in switch") Addresses-Coverity-ID: 1410184 ("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
b84ad65a75
commit
d19911ca05
@ -351,9 +351,9 @@ skip:
|
||||
case QLCNIC_BRDTYPE_P3P_REF_QG:
|
||||
case QLCNIC_BRDTYPE_P3P_4_GB:
|
||||
case QLCNIC_BRDTYPE_P3P_4_GB_MM:
|
||||
|
||||
supported |= SUPPORTED_Autoneg;
|
||||
advertising |= ADVERTISED_Autoneg;
|
||||
/* fall through */
|
||||
case QLCNIC_BRDTYPE_P3P_10G_CX4:
|
||||
case QLCNIC_BRDTYPE_P3P_10G_CX4_LP:
|
||||
case QLCNIC_BRDTYPE_P3P_10000_BASE_T:
|
||||
@ -377,6 +377,7 @@ skip:
|
||||
supported |= SUPPORTED_TP;
|
||||
check_sfp_module = netif_running(adapter->netdev) &&
|
||||
ahw->has_link_events;
|
||||
/* fall through */
|
||||
case QLCNIC_BRDTYPE_P3P_10G_XFP:
|
||||
supported |= SUPPORTED_FIBRE;
|
||||
advertising |= ADVERTISED_FIBRE;
|
||||
|
Loading…
Reference in New Issue
Block a user