projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560f118
)
usb: gadget: pch_udc: Fix likely misuse of | for &
author
Joe Perches
<joe@perches.com>
Wed, 30 May 2012 20:25:57 +0000
(13:25 -0700)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 4 Jun 2012 15:12:06 +0000
(18:12 +0300)
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>
drivers/usb/gadget/pch_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/pch_udc.c
b/drivers/usb/gadget/pch_udc.c
index 1cfcc9ecbfbc1e8d6be5ab2d89c97e54180cfdbd..f4fb71c9ae0816d18f18c8b1771cb2f4f8da42e2 100644
(file)
--- 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;
}