net: bna: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 net: bna: Use fallthrough pseudo-keyword
Replace /* !!! fall through !!! */ comments with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/brocade/bna/bfa_ioc.c +3 -2
@@ -269,7 +269,7 @@ bfa_ioc_sm_enabling(struct bfa_ioc *ioc, enum ioc_event event)break ;case IOC_E_PFFAILED : -/* !!! fall through !!! */ + fallthrough;case IOC_E_HWERROR : ioc->cbfn->enable_cbfn (ioc->bfa,BFA_STATUS_IOC_FAILURE );bfa_fsm_set_state (ioc, bfa_ioc_sm_fail);
@@ -365,7 +365,8 @@ bfa_ioc_sm_op(struct bfa_ioc *ioc, enum ioc_event event)case IOC_E_PFFAILED :case IOC_E_HWERROR :bfa_ioc_hb_stop (ioc); -/* !!! fall through !!! */ + fallthrough; +case IOC_E_HBFAIL :if (ioc->iocpf.auto_recover)bfa_fsm_set_state (ioc, bfa_ioc_sm_fail_retry);
Signature · 1 line
2.27.0
From: "Gustavo A. R. Silva" <[email protected]>
Date: Fri, 2 Oct 2020 18:00:01 -0500
Quoted 6 lines
Replace /* !!! fall through !!! */ comments with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied.