qed: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 10 Mar 2021 06:07:01 +0000 (00:07 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 20:45:15 +0000 (12:45 -0800)
commit134639e9cc0f921c2c3ad44a5bea00219f8b0ada
tree1309209378c7fa1ada4845aa1db3a5f0f0031d6a
parent71ae2cb30531725dbc53329e2aac42294692a008
qed: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding a couple of break statements instead of
just letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qed/qed_sriov.c