summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/usb/gadget/udc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/usb/gadget/udc')
-rw-r--r--kernel/drivers/usb/gadget/udc/m66592-udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/usb/gadget/udc/m66592-udc.c b/kernel/drivers/usb/gadget/udc/m66592-udc.c
index 309706fe4..9704053df 100644
--- a/kernel/drivers/usb/gadget/udc/m66592-udc.c
+++ b/kernel/drivers/usb/gadget/udc/m66592-udc.c
@@ -1052,7 +1052,7 @@ static void set_feature(struct m66592 *m66592, struct usb_ctrlrequest *ctrl)
tmp = m66592_read(m66592, M66592_INTSTS0) &
M66592_CTSQ;
udelay(1);
- } while (tmp != M66592_CS_IDST || timeout-- > 0);
+ } while (tmp != M66592_CS_IDST && timeout-- > 0);
if (tmp == M66592_CS_IDST)
m66592_bset(m66592,