]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:27:00 +0000 (12:27 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:24:57 +0000 (19:24 -0500)
commit4328ba9a44f1e5d424e5ad43afe3e46b1f6e703f
tree994de001c6be9a492fcf5e3333c571a3ba6c2140
parentfb20f50c2f1d4b1b2e46d3e179409fa42e3329e6
qlcnic: Fix fall-through warnings for Clang

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

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c