From: Christian Lamparter Date: Mon, 15 Feb 2016 16:32:14 +0000 (+0100) Subject: carl9170 firmware: fix off-by-one error when CARL9170FW_USB_MODESWITCH is set X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7128d01c9f52f475f1519dc04845d2feb1c32065;p=carl9170fw.git carl9170 firmware: fix off-by-one error when CARL9170FW_USB_MODESWITCH is set 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 --- diff --git a/carlfw/usb/usb.c b/carlfw/usb/usb.c index 6142dcd..eb57da1 100644 --- a/carlfw/usb/usb.c +++ b/carlfw/usb/usb.c @@ -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();