diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 21:31:24 +0300 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-05-18 03:08:30 +0300 |
commit | 9b8b84c168b6c1e033a21b7a6880550a802ad378 (patch) | |
tree | 127d8ffebc959c7b29bcbc54ba8e591806afef79 /drivers/net/ethernet/qlogic/netxen | |
parent | ebd0476256bea64fb0146f28a079c9aa9ce670c0 (diff) | |
download | linux-9b8b84c168b6c1e033a21b7a6880550a802ad378.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen')
-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; } |