From patchwork Wed Aug 22 05:43:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10847 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 2943D23E37 for ; Wed, 22 Aug 2012 05:45:43 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 343DDA18442 for ; Wed, 22 Aug 2012 05:45:32 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j38so522658iad.11 for ; Tue, 21 Aug 2012 22:45:42 -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=rAZoa98pyW5x2unD9sDtCWj1cESrrr/yyefOShDJEGM=; b=D7X228TMK9nH2G2jZNiFVMvUkmx/gCR1r6GVHd5PlJBww1g3EAEun4pHawdI+RZN6Y CJUvHUO8wXgRmc+Gd9PYSIJ9GHF4eJztxBB2f6vXfUPLl1waDF75hZ2Q/1RlBCHS1mP/ VP01Q/YH/dlpgaKEofFkitR8XP+O0MamVH+ykQ5WyvM1W4oI91ZG2TRje/5nTCtbiXMk V/WqQhoUvmx7R7veAB+4Sm1+N4QuS3iLcdz0dtY+q9x5nyvzPGRiFQkM4zsFtIndzU8x vpwTT3/i2teUzrd07XfuPi9ZHeCiZw+fn/fxeNfm9m/1KWlAtp1D8vWgi9bv3MBeAwiE u1og== Received: by 10.50.182.162 with SMTP id ef2mr897329igc.43.1345614342537; Tue, 21 Aug 2012 22:45:42 -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 ex8csp184140igc; Tue, 21 Aug 2012 22:45:42 -0700 (PDT) Received: by 10.66.81.201 with SMTP id c9mr9067891pay.80.1345614341926; Tue, 21 Aug 2012 22:45:41 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id kn7si6368636pbc.326.2012.08.21.22.45.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 22:45:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.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-pz0-f50.google.com with SMTP id e7so474484dad.37 for ; Tue, 21 Aug 2012 22:45:41 -0700 (PDT) Received: by 10.66.82.167 with SMTP id j7mr9066079pay.32.1345614341473; Tue, 21 Aug 2012 22:45:41 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id os1sm2987450pbc.31.2012.08.21.22.45.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 22:45:40 -0700 (PDT) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: gregkh@linuxfoundation.org, balbi@ti.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 5/5] usb: gadget: s3c2410_udc: Do not use integer for NULL Date: Wed, 22 Aug 2012 11:13:19 +0530 Message-Id: <1345614199-12181-6-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1345614199-12181-1-git-send-email-sachin.kamat@linaro.org> References: <1345614199-12181-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmQQFrcj1URduKnZxDF4ub70lpaR9/vMq9fEOqWFE00RQNsKYpq6HMs/F+LsC4l222bAh7K '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 921400c..3b7732f 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);