OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb74d28
)
usb: gadget: goku_udc: use NULL instead of 0
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 2 Aug 2013 08:16:33 +0000
(17:16 +0900)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 2 Aug 2013 08:19:51 +0000
(11:19 +0300)
'req' is a pointer; thus, use NULL instead of 0
to fix the following sparse warning:
drivers/usb/gadget/goku_udc.c:775:13: warning: Using plain integer as NULL pointer
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/goku_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/goku_udc.c
b/drivers/usb/gadget/goku_udc.c
index
52dd6cc
..
c64deb9
100644
(file)
--- a/
drivers/usb/gadget/goku_udc.c
+++ b/
drivers/usb/gadget/goku_udc.c
@@
-772,7
+772,7
@@
goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags)
} /* else pio or dma irq handler advances the queue. */
- if (likely(req !=
0
))
+ if (likely(req !=
NULL
))
list_add_tail(&req->queue, &ep->queue);
if (likely(!list_empty(&ep->queue))