diff options
author | Joe Perches <joe@perches.com> | 2012-05-30 13:25:57 -0700 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 18:12:06 +0300 |
commit | 0a00790ff4755f2e3eab907a43725cff59fc074b (patch) | |
tree | 603caaee8361608b2adc102b2819b67ab82ee2f1 | |
parent | 560f1187990c6c548756bf2f1183aa19d9c97413 (diff) | |
download | linux-3.10-0a00790ff4755f2e3eab907a43725cff59fc074b.tar.gz linux-3.10-0a00790ff4755f2e3eab907a43725cff59fc074b.tar.bz2 linux-3.10-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>
-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 1cfcc9ecbfb..f4fb71c9ae0 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; } |