| From 1b4c6eb98b397c9261b6f2096332d416c0216df5 Mon Sep 17 00:00:00 2001 |
| From: "Gustavo A. R. Silva" <garsilva@embeddedor.com> |
| Date: Wed, 25 Oct 2017 13:49:01 -0500 |
| Subject: [PATCH 0257/1795] usb: host: xhci: 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 7d864999814e777fe083c2fd156112ccf9058882) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/usb/host/xhci.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c |
| index 1af90f1c59e8..19bd1c1df9cc 100644 |
| --- a/drivers/usb/host/xhci.c |
| +++ b/drivers/usb/host/xhci.c |
| @@ -4338,6 +4338,7 @@ static unsigned long long xhci_calculate_intel_u1_timeout( |
| break; |
| } |
| /* Otherwise the calculation is the same as isoc eps */ |
| + /* fall through */ |
| case USB_ENDPOINT_XFER_ISOC: |
| timeout_ns = xhci_service_interval_to_ns(desc); |
| timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); |
| -- |
| 2.19.0 |
| |