diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 19:31:24 +0100 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-05-18 02:08:30 +0200 |
commit | 9b8b84c168b6c1e033a21b7a6880550a802ad378 (patch) | |
tree | 127d8ffebc959c7b29bcbc54ba8e591806afef79 | |
parent | nfp: Fix fall-through warnings for Clang (diff) | |
download | linux-9b8b84c168b6c1e033a21b7a6880550a802ad378.tar.xz linux-9b8b84c168b6c1e033a21b7a6880550a802ad378.zip |
netxen_nic: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a goto statement 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>
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c index 08f9477d2ee8..35ec9aab3dc7 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c @@ -1685,6 +1685,7 @@ netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max) break; case NETXEN_NIC_RESPONSE_DESC: netxen_handle_fw_message(desc_cnt, consumer, sds_ring); + goto skip; default: goto skip; } |