From: Roel Kluin Date: Sat, 17 Jan 2009 15:52:17 +0000 (+0100) Subject: USB: GADGET: fix !x & y X-Git-Tag: v2.6.29-rc3~6^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0df2479232eeea20c924350a11788c724b8c218d;p=linux-2.6-omap-h63xx.git USB: GADGET: fix !x & y ! has a higher precedence than & Signed-off-by: Roel Kluin Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/imx_udc.c b/drivers/usb/gadget/imx_udc.c index cde8fdf15d5..77c5d0a8a06 100644 --- a/drivers/usb/gadget/imx_udc.c +++ b/drivers/usb/gadget/imx_udc.c @@ -297,7 +297,7 @@ void imx_ep_stall(struct imx_ep_struct *imx_ep) for (i = 0; i < 100; i ++) { temp = __raw_readl(imx_usb->base + USB_EP_STAT(EP_NO(imx_ep))); - if (!temp & EPSTAT_STALL) + if (!(temp & EPSTAT_STALL)) break; udelay(20); }