carl9170 firmware: fix off-by-one error when CARL9170FW_USB_MODESWITCH is set
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 15 Feb 2016 16:32:14 +0000 (17:32 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 15 Feb 2016 16:32:14 +0000 (17:32 +0100)
usb/usb.c: In function ‘usb_set_configuration’:
usb/usb.c:544:1: error: control reaches end of non-void function [-Werror=return-type]

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/usb/usb.c

index 6142dcde914b0e6732d57a358d3de62c7f1f3112..eb57da14aaad0f00c1648d68d6aa07a0406795ef 100644 (file)
@@ -527,7 +527,6 @@ static int usb_set_configuration(const struct usb_ctrlrequest *ctrl)
                        usb_init_fullspeed_fifo_cfg();
                }
                /* usb_pta_init() ? */
-               break;
 #endif /* CONFIG_CARL9170FW_USB_MODESWITCH */
 
                usb_reset_eps();