summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-04-23 07:14:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 15:21:26 +0200
commit3f0989e4d366b5affc222f01d2b6273258171946 (patch)
treed342fe60b08254409f4593e5b4fd43be505397d5 /drivers/usb/core/hcd.c
parentee30ec0cba81cf0a9a3a823a38573ca491efdf57 (diff)
downloadlinux-3f0989e4d366b5affc222f01d2b6273258171946.tar.gz
linux-3f0989e4d366b5affc222f01d2b6273258171946.tar.bz2
linux-3f0989e4d366b5affc222f01d2b6273258171946.zip
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 <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r--drivers/usb/core/hcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index ac5bcf449d7d..f65c1f287ab3 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;