summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-25 20:49:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-01 17:02:15 +0100
commit1356cedd99aab15a60c4c4ade79e52c4b5200fdf (patch)
tree5b25a100ea0fadfb05e919b1d18e2f5ac01dd20c
parentusb: host: xhci: mark expected switch fall-through (diff)
downloadlinux-1356cedd99aab15a60c4c4ade79e52c4b5200fdf.tar.xz
linux-1356cedd99aab15a60c4c4ade79e52c4b5200fdf.zip
usb: host: xhci-mem: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index 795219a397d3..57be885fb544 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -1311,6 +1311,7 @@ static unsigned int xhci_get_endpoint_interval(struct usb_device *udev,
* since it uses the same rules as low speed interrupt
* endpoints.
*/
+ /* fall through */
case USB_SPEED_LOW:
if (usb_endpoint_xfer_int(&ep->desc) ||