]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
usb: core: urb: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 24 Oct 2017 03:25:43 +0000 (22:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:01:07 +0000 (17:01 +0100)
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>
drivers/usb/core/urb.c

index 47903d510955b03967da9a125092b6965118c0be..caca5ed6d0f36e5fa87e9b66be9e4bb7549cd249 100644 (file)
@@ -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;