net: bna: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 2 Oct 2020 23:00:01 +0000 (18:00 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:33:23 +0000 (17:33 -0700)
Replace /* !!! fall through !!! */ comments with the new pseudo-keyword
macro fallthrough[1].

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfa_ioc.c

index fd805c685d921c5f3adf5e6d773c4028883a118e..cd933817a0b8aba73d7c581372aeb8ec76117f24 100644 (file)
@@ -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);