From: Gustavo A. R. Silva Date: Tue, 24 Oct 2017 03:25:43 +0000 (-0500) Subject: usb: core: urb: mark expected switch fall-through X-Git-Tag: rel_imx_4.19.35_1.1.0~11322^2~92 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=4f4ee7d87989df17aaca80a2e2d62b15d3f3cacc;p=linux.git usb: core: urb: mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1162594 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index 47903d510955..caca5ed6d0f3 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c @@ -492,6 +492,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) if ((urb->interval < 6) && (xfertype == USB_ENDPOINT_XFER_INT)) return -EINVAL; + /* fall through */ default: if (urb->interval <= 0) return -EINVAL;