net: usbnet: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 3 Sep 2018 18:48:45 +0000 (13:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 19:19:25 +0000 (12:19 -0700)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1077614 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c

index 770aa624147f170abd330d7820bc995ef9a712e6..73aa33364d8053b041ae7ae8b6186010bddb9f47 100644 (file)
@@ -1527,6 +1527,7 @@ static void usbnet_bh (struct timer_list *t)
                        continue;
                case tx_done:
                        kfree(entry->urb->sg);
+                       /* fall through */
                case rx_cleanup:
                        usb_free_urb (entry->urb);
                        dev_kfree_skb (skb);