From: Sachin Kamat Date: Wed, 22 Aug 2012 10:19:02 +0000 (+0530) Subject: usb: gadget: s3c2410_udc: Do not use integer for NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86bab36662d47388102ca437a3cbfd79e0ea75cd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c index e895ea12b67e..b627c9b51fda 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);