usb: misc: add missing continue in switch
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 4 Apr 2017 03:48:40 +0000 (22:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:04:42 +0000 (12:04 +0200)
Add missing continue in switch.

Addresses-Coverity-ID: 1248733
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c

index 17c0810682579a7fbba5e3fcef1b377519b8f0d8..26ae5d1a2a4e205289dcaed71f8f8c76118dcff1 100644 (file)
@@ -159,6 +159,7 @@ get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf)
                        case USB_ENDPOINT_XFER_INT:
                                if (dev->info->intr)
                                        goto try_intr;
+                               continue;
                        case USB_ENDPOINT_XFER_ISOC:
                                if (dev->info->iso)
                                        goto try_iso;