From patchwork Thu May 29 04:57:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 31079 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3F5820068 for ; Thu, 29 May 2014 05:01:57 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q9sf29104736ykb.11 for ; Wed, 28 May 2014 22:01:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=j+BYJItjqetszVFL+knx8h2wGEmE3AZG/t9PVn+g5yM=; b=ZaVgPBLrT0lXlN3QCs4sGbTgge8Qb1IN2j77gS1nSICztp4CbLfwEGwF1LJCOjoXOB vUu5uWWq343qcv6570HBtQlMHXAGa6YXGxVYnerhlavTWHaj1SnO527mHbllTVVN26uD yxQpYRq8aREpsOcRXAc/ibxYSp1IvqYAKRuHYWtavSwpygbVEipIoLun0OHaCtrpdxEz YcZMqdq1f0JVq5Mxnx0YC/TyedH3iZz3AsUTort2hYDmaUYIvyXcuGpDmAKYhioppK9P dY21RAoF5PLNHQEyUHdi2DygPFTTHyzH5jUT8L79GMNgqz6K1/DQazQDI5nOI8Ik7aPe dfeA== X-Gm-Message-State: ALoCoQkmYsDisfz07ifFA8YcBRwDABTEEM0ArTd+bYK/ImVCdpwz9wl/AzyBJl2NG6Sa9LBU37WH X-Received: by 10.58.182.137 with SMTP id ee9mr2118253vec.37.1401339717603; Wed, 28 May 2014 22:01:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.180 with SMTP id w49ls413897qge.3.gmail; Wed, 28 May 2014 22:01:57 -0700 (PDT) X-Received: by 10.220.195.196 with SMTP id ed4mr134520vcb.42.1401339717488; Wed, 28 May 2014 22:01:57 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id o10si12428468vdo.29.2014.05.28.22.01.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 22:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so13733378veb.30 for ; Wed, 28 May 2014 22:01:57 -0700 (PDT) X-Received: by 10.58.198.107 with SMTP id jb11mr4502982vec.10.1401339717406; Wed, 28 May 2014 22:01:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp216vcb; Wed, 28 May 2014 22:01:56 -0700 (PDT) X-Received: by 10.224.71.145 with SMTP id h17mr6528618qaj.74.1401339716828; Wed, 28 May 2014 22:01:56 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id n13si25318016qay.108.2014.05.28.22.01.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 May 2014 22:01:56 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpsRz-0005Qx-Pn; Thu, 29 May 2014 05:00:23 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpsRp-0004EC-AQ for linux-arm-kernel@lists.infradead.org; Thu, 29 May 2014 05:00:13 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so12414443pbb.33 for ; Wed, 28 May 2014 21:59:52 -0700 (PDT) X-Received: by 10.68.189.68 with SMTP id gg4mr5679950pbc.42.1401339592346; Wed, 28 May 2014 21:59:52 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id xc1sm98319530pab.39.2014.05.28.21.59.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 21:59:51 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: imx: Use PTR_ERR_OR_ZERO in mach-mx31moboard.c Date: Thu, 29 May 2014 10:27:11 +0530 Message-Id: <1401339434-26085-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1401339434-26085-1-git-send-email-sachin.kamat@linaro.org> References: <1401339434-26085-1-git-send-email-sachin.kamat@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140528_220013_392024_2CDB090E X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.46 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Cc: sachin.kamat@linaro.org, linux@arm.linux.org.uk, kernel@pengutronix.de, shawn.guo@freescale.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat --- arch/arm/mach-imx/mach-mx31moboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c index 6bed57040973..bb6f8a52a6b8 100644 --- a/arch/arm/mach-imx/mach-mx31moboard.c +++ b/arch/arm/mach-imx/mach-mx31moboard.c @@ -435,10 +435,8 @@ static int __init moboard_usbh2_init(void) return -ENODEV; pdev = imx31_add_mxc_ehci_hs(2, &usbh2_pdata); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - return 0; + return PTR_ERR_OR_ZERO(pdev); } static const struct gpio_led mx31moboard_leds[] __initconst = {