diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-02 17:16:33 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-08-02 11:19:51 +0300 |
commit | 027ca0d2fe779faf19c7c3414f840fdc851af41d (patch) | |
tree | 760939e7844fcde6a80b8ca63c2255760244956a /drivers/usb/gadget | |
parent | fb74d282d29dbb39ef20211a9cf2883f9f593bdd (diff) |
usb: gadget: goku_udc: use NULL instead of 0
'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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/goku_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index 52dd6cc6c0a..c64deb9e3d6 100644 --- 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)) |