diff options
author | Joe Perches <joe@perches.com> | 2012-05-30 22:25:57 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 17:12:06 +0200 |
commit | 0a00790ff4755f2e3eab907a43725cff59fc074b (patch) | |
tree | 603caaee8361608b2adc102b2819b67ab82ee2f1 /drivers/usb/gadget/pch_udc.c | |
parent | usb: gadget: ffs: add HID descriptor support. (diff) | |
download | linux-0a00790ff4755f2e3eab907a43725cff59fc074b.tar.xz linux-0a00790ff4755f2e3eab907a43725cff59fc074b.zip |
usb: gadget: pch_udc: Fix likely misuse of | for &
Using | with a constant is always true.
Likely this should have be &.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/pch_udc.c')
-rw-r--r-- | drivers/usb/gadget/pch_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c index 1cfcc9ecbfbc..f4fb71c9ae08 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c @@ -2208,7 +2208,7 @@ static void pch_udc_complete_receiver(struct pch_udc_ep *ep) return; } if ((td->status & PCH_UDC_BUFF_STS) == PCH_UDC_BS_DMA_DONE) - if (td->status | PCH_UDC_DMA_LAST) { + if (td->status & PCH_UDC_DMA_LAST) { count = td->status & PCH_UDC_RXTX_BYTES; break; } |