Commit 0a00790f authored by Joe Perches's avatar Joe Perches Committed by Felipe Balbi
Browse files

usb: gadget: pch_udc: Fix likely misuse of | for &



Using | with a constant is always true.
Likely this should have be &.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 560f1187
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
			}