Skip to content

Commit

Permalink
USB: GADGET: fix !x & y
Browse files Browse the repository at this point in the history
! has a higher precedence than &

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Jan 28, 2009
1 parent 1a1fab5 commit 0df2479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/imx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0df2479

Please sign in to comment.