From: Joe Perches <joe@perches.com>
Date: Wed, 30 May 2012 20:25:57 +0000 (-0700)
Subject: usb: gadget: pch_udc: Fix likely misuse of | for &
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0a00790ff4755f2e3eab907a43725cff59fc074b;p=linux.git

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>
---

diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c
index 1cfcc9ecbfbc1..f4fb71c9ae081 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;
 			}