Commit 0df24792 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

USB: GADGET: fix !x & y

! has a higher precedence than &
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1a1fab51
...@@ -297,7 +297,7 @@ void imx_ep_stall(struct imx_ep_struct *imx_ep) ...@@ -297,7 +297,7 @@ void imx_ep_stall(struct imx_ep_struct *imx_ep)
for (i = 0; i < 100; i ++) { for (i = 0; i < 100; i ++) {
temp = __raw_readl(imx_usb->base + USB_EP_STAT(EP_NO(imx_ep))); temp = __raw_readl(imx_usb->base + USB_EP_STAT(EP_NO(imx_ep)));
if (!temp & EPSTAT_STALL) if (!(temp & EPSTAT_STALL))
break; break;
udelay(20); udelay(20);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment