From: Gustavo A. R. Silva Date: Mon, 23 Apr 2018 12:14:53 +0000 (-0500) Subject: usb: core: hcd: mark expected switch fall-through X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3f0989e4d366b5affc222f01d2b6273258171946;p=linux.git usb: core: hcd: mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1468266 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index ac5bcf449d7d4..f65c1f287ab3a 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2812,6 +2812,7 @@ int usb_add_hcd(struct usb_hcd *hcd, case HCD_USB32: rhdev->rx_lanes = 2; rhdev->tx_lanes = 2; + /* fall through */ case HCD_USB31: rhdev->speed = USB_SPEED_SUPER_PLUS; break;