carl9170 firmware: fix build error
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 18 Oct 2010 19:54:02 +0000 (21:54 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 18 Oct 2010 19:54:02 +0000 (21:54 +0200)
carlfw/usb/usb.c: In function 'usb_ep0setup':
carlfw/usb/usb.c:701: error: will never be executed

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

index 12b487b278294b3e93e5901d6d2932c806ecdecd..4e387d74f974805c54c628cf15f7d6f0ac18e3c3 100644 (file)
@@ -696,8 +696,10 @@ void usb_ep0setup(void)
 
        if (status < 0)
                fw.usb.ep0_action |= CARL9170_EP0_STALL;
+#ifdef CONFIG_CARL9170FW_USB_STANDARD_CMDS
        if (status > 0)
                fw.usb.ep0_action |= CARL9170_EP0_TRIGGER;
+#endif /* CONFIG_CARL9170FW_USB_STANDARD_CMDS */
 }
 
 void usb_ep0rx(void)