From 7e5d23505b1b54986ba66336dae9209b95fcd5e1 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Mon, 18 Oct 2010 21:54:02 +0200 Subject: [PATCH] carl9170 firmware: fix build error carlfw/usb/usb.c: In function 'usb_ep0setup': carlfw/usb/usb.c:701: error: will never be executed Signed-off-by: Christian Lamparter --- carlfw/usb/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/carlfw/usb/usb.c b/carlfw/usb/usb.c index 12b487b..4e387d7 100644 --- a/carlfw/usb/usb.c +++ b/carlfw/usb/usb.c @@ -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) -- 2.31.1