| From dab4d700bd90cffdd04e75c7b8df74438907ea4d Mon Sep 17 00:00:00 2001 |
| From: "Gustavo A. R. Silva" <garsilva@embeddedor.com> |
| Date: Wed, 25 Oct 2017 13:49:10 -0500 |
| Subject: [PATCH 0258/1795] 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> |
| (cherry picked from commit 1356cedd99aab15a60c4c4ade79e52c4b5200fdf) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/usb/host/xhci-mem.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c |
| index d10129e664fd..804aef5d4e47 100644 |
| --- a/drivers/usb/host/xhci-mem.c |
| +++ b/drivers/usb/host/xhci-mem.c |
| @@ -1328,6 +1328,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) || |
| -- |
| 2.19.0 |
| |