summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-23 22:25:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-01 17:01:07 +0100
commit4f4ee7d87989df17aaca80a2e2d62b15d3f3cacc (patch)
tree4e6d72ae18a9025b03eb4d75730b76e699d05bb6 /drivers/usb/core
parent685b2df48e8f3f01b646f5951188804dbed58298 (diff)
downloadlinux-4f4ee7d87989df17aaca80a2e2d62b15d3f3cacc.tar.bz2
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 <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/urb.c1
1 files changed, 1 insertions, 0 deletions
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;