projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee30ec0
)
usb: core: hcd: mark expected switch fall-through
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Mon, 23 Apr 2018 12:14:53 +0000
(07:14 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:21:26 +0000
(15:21 +0200)
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>
drivers/usb/core/hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/hcd.c
b/drivers/usb/core/hcd.c
index ac5bcf449d7d419e7dc717d48c7a1c4f01071658..f65c1f287ab3a52272af7ed9d51e41367224ebea 100644
(file)
--- 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;