USB: GADGET: fix !x & y

! has a higher precedence than &

Signed-off-by: Roel Kluin <[email protected]>
Acked-by: David Brownell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Roel Kluin 2009-01-17 16:52:17 +01:00 • committed by Greg Kroah-Hartman
commit 0df2479232

View file

@ -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);
}