usbnet: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 2 Oct 2020 22:53:15 +0000 (17:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:33:23 +0000 (17:33 -0700)
Replace // FALLTHROUGH comment 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/usb/usbnet.c

index 2b2a841..bf6c582 100644 (file)
@@ -597,7 +597,7 @@ static void rx_complete (struct urb *urb)
        case -EPIPE:
                dev->net->stats.rx_errors++;
                usbnet_defer_kevent (dev, EVENT_RX_HALT);
-               // FALLTHROUGH
+               fallthrough;
 
        /* software-driven interface shutdown */
        case -ECONNRESET:               /* async unlink */