prism54: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 21 Aug 2020 06:29:47 +0000 (01:29 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 13:06:29 +0000 (16:06 +0300)
Replace the existing /* fall through */ comments and its variants 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: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200821062947.GA10202@embeddedor
drivers/net/wireless/intersil/prism54/isl_38xx.c
drivers/net/wireless/intersil/prism54/isl_ioctl.c
drivers/net/wireless/intersil/prism54/islpci_dev.c

index a1f956707887355fe44bdd5156ad528d1a08c4a1..ae964de347f797ab3e042f91e45d661a72715bd5 100644 (file)
@@ -223,7 +223,7 @@ isl38xx_in_queue(isl38xx_control_block *cb, int queue)
                /* send queues */
        case ISL38XX_CB_TX_MGMTQ:
                BUG_ON(delta > ISL38XX_CB_MGMT_QSIZE);
-               /* fall through */
+               fallthrough;
 
        case ISL38XX_CB_TX_DATA_LQ:
        case ISL38XX_CB_TX_DATA_HQ:
index 3ccf2a4b548c6129829e4709c3ffae060f8b0565..9192c5a3923e0557a9863d329896af0b1550ad3c 100644 (file)
@@ -1691,7 +1691,7 @@ static int prism54_get_encodeext(struct net_device *ndev,
        case DOT11_AUTH_BOTH:
        case DOT11_AUTH_SK:
                wrqu->encoding.flags |= IW_ENCODE_RESTRICTED;
-               /* fall through */
+               fallthrough;
        case DOT11_AUTH_OS:
        default:
                wrqu->encoding.flags |= IW_ENCODE_OPEN;
index efd64e555bb531383296edd823a6137191274b6c..8eb6d5e4bd57b227a89488185938f00ca4cbff96 100644 (file)
@@ -918,7 +918,7 @@ islpci_set_state(islpci_private *priv, islpci_state_t new_state)
        switch (new_state) {
        case PRV_STATE_OFF:
                priv->state_off++;
-               /* fall through */
+               fallthrough;
        default:
                priv->state = new_state;
                break;