diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-04-23 08:14:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-23 09:21:26 -0400 |
commit | 3f0989e4d366b5affc222f01d2b6273258171946 (patch) | |
tree | d342fe60b08254409f4593e5b4fd43be505397d5 | |
parent | ee30ec0cba81cf0a9a3a823a38573ca491efdf57 (diff) |
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>
-rw-r--r-- | drivers/usb/core/hcd.c | 1 |
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, | |||
2812 | case HCD_USB32: | 2812 | case HCD_USB32: |
2813 | rhdev->rx_lanes = 2; | 2813 | rhdev->rx_lanes = 2; |
2814 | rhdev->tx_lanes = 2; | 2814 | rhdev->tx_lanes = 2; |
2815 | /* fall through */ | ||
2815 | case HCD_USB31: | 2816 | case HCD_USB31: |
2816 | rhdev->speed = USB_SPEED_SUPER_PLUS; | 2817 | rhdev->speed = USB_SPEED_SUPER_PLUS; |
2817 | break; | 2818 | break; |