projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1660c89
)
usb: gadget: s3c2410_udc: Do not use integer for NULL
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 22 Aug 2012 10:19:02 +0000
(15:49 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 31 Aug 2012 09:42:00 +0000
(12:42 +0300)
'req' being a pointer shouldn't be equated with 0.
Fixes the following compilation warning:
drivers/usb/gadget/s3c2410_udc.c:1299:13: warning:
Using plain integer as NULL pointer
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c2410_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/s3c2410_udc.c
b/drivers/usb/gadget/s3c2410_udc.c
index e895ea12b67eaa87610d189d6a3b391d66cd12e5..b627c9b51fda084d615f95dd49f4ddad3ce45e20 100644
(file)
--- a/
drivers/usb/gadget/s3c2410_udc.c
+++ b/
drivers/usb/gadget/s3c2410_udc.c
@@
-1296,7
+1296,7
@@
static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req,
}
/* pio or dma irq handler advances the queue. */
- if (likely(req
!= 0
))
+ if (likely(req))
list_add_tail(&req->queue, &ep->queue);
local_irq_restore(flags);