summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-25 20:49:01 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-01 17:02:15 +0100
commit7d864999814e777fe083c2fd156112ccf9058882 (patch)
treed451862dcf821171952b1c4f62183474a50cdb2b /drivers/usb/host/xhci.c
parentusb: host: fotg210-hcd: mark expected switch fall-through (diff)
downloadlinux-7d864999814e777fe083c2fd156112ccf9058882.tar.xz
linux-7d864999814e777fe083c2fd156112ccf9058882.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/usb/host/xhci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index ee077a21dfda..05db6e977ba1 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -4294,6 +4294,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);