atmel: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 21 Aug 2020 06:53:55 +0000 (01:53 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 13:09:19 +0000 (16:09 +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/20200821065355.GA25808@embeddedor
drivers/net/wireless/atmel/at76c50x-usb.c
drivers/net/wireless/atmel/atmel.c

index a63b5c2..b760c66 100644 (file)
@@ -432,7 +432,7 @@ static int at76_usbdfu_download(struct usb_device *udev, u8 *buf, u32 size,
 
                case STATE_DFU_DOWNLOAD_IDLE:
                        at76_dbg(DBG_DFU, "DOWNLOAD...");
-                       /* fall through */
+                       fallthrough;
                case STATE_DFU_IDLE:
                        at76_dbg(DBG_DFU, "DFU IDLE");
 
index 7d51f18..707fe66 100644 (file)
@@ -1227,7 +1227,7 @@ static irqreturn_t service_interrupt(int irq, void *dev_id)
 
                case ISR_RxFRAMELOST:
                        priv->wstats.discard.misc++;
-                       /* fall through */
+                       fallthrough;
                case ISR_RxCOMPLETE:
                        rx_done_irq(priv);
                        break;