aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c2410_udc.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-08-22 15:49:02 +0530
committerFelipe Balbi <balbi@ti.com>2012-08-31 12:42:00 +0300
commit86bab36662d47388102ca437a3cbfd79e0ea75cd (patch)
treea2c0310b1c23de1b5aec5a480563cb825f4d6300 /drivers/usb/gadget/s3c2410_udc.c
parent1660c8944652aac142e622d276c3750f735a568f (diff)
downloadkernel_goldelico_gta04-86bab36662d47388102ca437a3cbfd79e0ea75cd.zip
kernel_goldelico_gta04-86bab36662d47388102ca437a3cbfd79e0ea75cd.tar.gz
kernel_goldelico_gta04-86bab36662d47388102ca437a3cbfd79e0ea75cd.tar.bz2
usb: gadget: s3c2410_udc: Do not use integer for NULL
'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>
Diffstat (limited to 'drivers/usb/gadget/s3c2410_udc.c')
-rw-r--r--drivers/usb/gadget/s3c2410_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index e895ea1..b627c9b 100644
--- 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);