Skip to content

Commit 9536d6e

Browse files
GustavoARSilvadavem330
authored andcommitted
bna: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/net/ethernet/brocade/bna/bfa_ioc.c:790:3: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/net/ethernet/brocade/bna/bfa_ioc.c:860:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Sudarsana Kalluru <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 015496c commit 9536d6e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

drivers/net/ethernet/brocade/bna/bfa_ioc.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,8 @@ bfa_iocpf_sm_enabling(struct bfa_iocpf *iocpf, enum iocpf_event event)
788788

789789
case IOCPF_E_INITFAIL:
790790
del_timer(&ioc->iocpf_timer);
791-
/*
792-
* !!! fall through !!!
793-
*/
791+
/* fall through */
792+
794793
case IOCPF_E_TIMEOUT:
795794
bfa_nw_ioc_hw_sem_release(ioc);
796795
if (event == IOCPF_E_TIMEOUT)
@@ -858,9 +857,7 @@ bfa_iocpf_sm_disabling(struct bfa_iocpf *iocpf, enum iocpf_event event)
858857

859858
case IOCPF_E_FAIL:
860859
del_timer(&ioc->iocpf_timer);
861-
/*
862-
* !!! fall through !!!
863-
*/
860+
/* fall through*/
864861

865862
case IOCPF_E_TIMEOUT:
866863
bfa_ioc_set_cur_ioc_fwstate(ioc, BFI_IOC_FAIL);

0 commit comments

Comments
 (0)