summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/pch_udc.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-05-31 00:25:57 +0400
committerFelipe Balbi <balbi@ti.com>2012-06-04 19:12:06 +0400
commit0a00790ff4755f2e3eab907a43725cff59fc074b (patch)
tree603caaee8361608b2adc102b2819b67ab82ee2f1 /drivers/usb/gadget/pch_udc.c
parent560f1187990c6c548756bf2f1183aa19d9c97413 (diff)
downloadlinux-0a00790ff4755f2e3eab907a43725cff59fc074b.tar.xz
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.c2
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;
}