Commit 3f0989e4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Greg Kroah-Hartman

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee30ec0c
...@@ -2812,6 +2812,7 @@ int usb_add_hcd(struct usb_hcd *hcd, ...@@ -2812,6 +2812,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
case HCD_USB32: case HCD_USB32:
rhdev->rx_lanes = 2; rhdev->rx_lanes = 2;
rhdev->tx_lanes = 2; rhdev->tx_lanes = 2;
/* fall through */
case HCD_USB31: case HCD_USB31:
rhdev->speed = USB_SPEED_SUPER_PLUS; rhdev->speed = USB_SPEED_SUPER_PLUS;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment