Skip to content

Commit ed35da4

Browse files
GustavoARSilvadavem330
authored andcommitted
qed: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/net/ethernet/qlogic/qed/qed_cxt.c:2126:4: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9536d6e commit ed35da4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/qlogic/qed/qed_cxt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,6 +2129,7 @@ int qed_cxt_set_pf_params(struct qed_hwfn *p_hwfn, u32 rdma_tasks)
21292129
rdma_tasks);
21302130
/* no need for break since RoCE coexist with Ethernet */
21312131
}
2132+
/* fall through */
21322133
case QED_PCI_ETH:
21332134
{
21342135
struct qed_eth_pf_params *p_params =

0 commit comments

Comments
 (0)