]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: gadget: missing fallthrough in composite_setup()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 07:06:55 +0000 (09:06 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 3 Apr 2023 22:33:32 +0000 (00:33 +0200)
Add a missing fallthrough macro. This fixes a -Wimplicit-fallthrough
warning.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
drivers/usb/gadget/composite.c

index 2a309e624e10784fc0aa461d06384d0151fcf3ad..04b85419931e4a9dcefedf672fcbf1cbc3435557 100644 (file)
@@ -1068,7 +1068,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
                        if (!gadget_is_dualspeed(gadget) ||
                            gadget->speed >= USB_SPEED_SUPER)
                                break;
-
+                       fallthrough;
                case USB_DT_CONFIG:
                        value = config_desc(cdev, w_value);
                        if (value >= 0)