]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 25 Oct 2017 17:28:00 +0000 (12:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 15:57:22 +0000 (16:57 +0100)
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>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/dummy_hcd.c

index 664b64eae83417dad6acf589b40dfaf6be2f76b4..9dd26ff2a4ffb12e35d0b95bf3a41c846e0e0f72 100644 (file)
@@ -569,10 +569,12 @@ static int dummy_enable(struct usb_ep *_ep,
                        if (max <= 1024)
                                break;
                        /* save a return statement */
+                       /* fall through */
                case USB_SPEED_FULL:
                        if (max <= 64)
                                break;
                        /* save a return statement */
+                       /* fall through */
                default:
                        if (max <= 8)
                                break;
@@ -590,6 +592,7 @@ static int dummy_enable(struct usb_ep *_ep,
                        if (max <= 1024)
                                break;
                        /* save a return statement */
+                       /* fall through */
                case USB_SPEED_FULL:
                        if (max <= 1023)
                                break;