From patchwork Wed Aug 22 10:19:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10873 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9450E23E1B for ; Wed, 22 Aug 2012 10:21:29 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 34E75A18D29 for ; Wed, 22 Aug 2012 10:21:18 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id i2so531539ggm.11 for ; Wed, 22 Aug 2012 03:21:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Ajdly3n9Ii1yD6Fq7Uk16ttTi3SkL5nxkXeZXkqyVSk=; b=ijqOyYWrxjswvpx5M7nZ5TFe09k06ga4WKykaXheuxw7F/clM/nbsCYnbvv1Qx6w2i nn4TwkSTJgFPzA/9QM1+Mx3j1DV5jQdD5hHNFyadfyMoNoNNkr7gWjlOCSGTCvvGmZZL IFdRUbuM5N1VKE9uDO1tpIlg7K8LNxGEktprsjssJ5pY9cW55xXvdU/8U4gFozGi8wgs GoYSKn5kacddsLtUmPfyA7phSx5RKZzTIpfuADmboVZoAxVcPfcmqH8tQTu3Yp2ZkgJf Fn1m/c/M4EvW7sHPW+/fSIVSmEUqf8Pp/NGdb4LyBt7C4Nl4gJTbMPeUwI4pS5WrGUqY bl+Q== Received: by 10.50.180.129 with SMTP id do1mr1517842igc.28.1345630888782; Wed, 22 Aug 2012 03:21:28 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp194259igc; Wed, 22 Aug 2012 03:21:26 -0700 (PDT) Received: by 10.66.83.234 with SMTP id t10mr44926235pay.39.1345630886646; Wed, 22 Aug 2012 03:21:26 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id rt1si7305836pbc.255.2012.08.22.03.21.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 03:21:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so1293619pbc.37 for ; Wed, 22 Aug 2012 03:21:26 -0700 (PDT) Received: by 10.68.217.69 with SMTP id ow5mr51145686pbc.35.1345630886411; Wed, 22 Aug 2012 03:21:26 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y11sm3421283pbv.66.2012.08.22.03.21.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 03:21:25 -0700 (PDT) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: balbi@ti.com, gregkh@linuxfoundation.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH v2 5/5] usb: gadget: s3c2410_udc: Do not use integer for NULL Date: Wed, 22 Aug 2012 15:49:02 +0530 Message-Id: <1345630742-29908-6-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1345630742-29908-1-git-send-email-sachin.kamat@linaro.org> References: <1345630742-29908-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkxMy2+sqTtlulS+V7vu+pdGOcnLaLozfOsyXnBCT4ISM7Jf81gt3DS++GNY9db5yztVmAR '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 --- drivers/usb/gadget/s3c2410_udc.c | 2 +- 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);