Skip to content

Commit 9b8b84c

Browse files
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: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent ebd0476 commit 9b8b84c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,7 @@ netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max)
16851685
break;
16861686
case NETXEN_NIC_RESPONSE_DESC:
16871687
netxen_handle_fw_message(desc_cnt, consumer, sds_ring);
1688+
goto skip;
16881689
default:
16891690
goto skip;
16901691
}

0 commit comments

Comments
 (0)