aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-05-30 16:25:57 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-04 11:12:06 -0400
commit0a00790ff4755f2e3eab907a43725cff59fc074b (patch)
tree603caaee8361608b2adc102b2819b67ab82ee2f1
parent560f1187990c6c548756bf2f1183aa19d9c97413 (diff)
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.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)
2208 return; 2208 return;
2209 } 2209 }
2210 if ((td->status & PCH_UDC_BUFF_STS) == PCH_UDC_BS_DMA_DONE) 2210 if ((td->status & PCH_UDC_BUFF_STS) == PCH_UDC_BS_DMA_DONE)
2211 if (td->status | PCH_UDC_DMA_LAST) { 2211 if (td->status & PCH_UDC_DMA_LAST) {
2212 count = td->status & PCH_UDC_RXTX_BYTES; 2212 count = td->status & PCH_UDC_RXTX_BYTES;
2213 break; 2213 break;
2214 } 2214 }