Skip to content

Commit

Permalink
usb: gadget: s3c2410_udc: Do not use integer for NULL
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Sachin Kamat authored and Felipe Balbi committed Aug 31, 2012
1 parent 1660c89 commit 86bab36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/s3c2410_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86bab36

Please sign in to comment.