Skip to contentSkip to conversation

usb: core: hcd: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Apr 23, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---
 drivers/usb/core/hcd.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/core/hcd.c +1 -0
index 66cd3f9..1c21955 100644
@@ -2819,6 +2819,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;