net: usbnet: mark expected switch fall-through
Subsystems (5)
PATCH 1/1 net: usbnet: mark expected switch fall-through
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 <[email protected]>
--- drivers/net/usb/usbnet.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/usb/usbnet.c +1 -0
@@ -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);
From: "Gustavo A. R. Silva" <[email protected]>
Date: Mon, 3 Sep 2018 13:48:45 -0500
Quoted 5 lines
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 <[email protected]>
Applied, thank you.