Message ID | 1401339434-26085-4-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBRX6TKOAKGQEKPFLMIY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 511F720068 for <linaro@patches.linaro.org>; Thu, 29 May 2014 05:01:59 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id z6sf51788654yhz.5 for <linaro@patches.linaro.org>; Wed, 28 May 2014 22:01:59 -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=Tt0HKpOM0mKD7VEpwB7z3nclBlUI4i6FePnPevF1GfE=; b=ZO6kHk2XxPPNxCbKz1P4GgUCM3Dv6VTyRrTT//CeSeVLlcTgUw0RybW9tTfKeuU5WU gUZw+19sgW8DL+CqNfz+RefOss2DcWPPY+KpKkqX5wKoqeeTFKZwO2El3hHtfUnyjd/o 7CMv6Ix/Jj4Am8IGbqcsNtcgV9wXQ5iEsyTETq6RdWKPfQIe+FGntf1zh6t/hFykAFK5 O8/d21Gyztf2KFfFDDryVmijqewhRkOW7Lia3vMgdUFGaXspggUaKCE1nykWHLN4ex9H ZunJn0BuYxt6rmGGZjllL1KSnY87wRa611nMati+e5dvxEqOAcacpEiAWy9GHiwjAjf3 XBtQ== X-Gm-Message-State: ALoCoQmSvimnRwfh3PxCuxQxdquWluviVFbAZSVq8zl+BNu7AoROyK+gdKQBpAXzaedgBmMahlba X-Received: by 10.236.83.161 with SMTP id q21mr792825yhe.41.1401339718964; Wed, 28 May 2014 22:01:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.44 with SMTP id a41ls418560qge.72.gmail; Wed, 28 May 2014 22:01:58 -0700 (PDT) X-Received: by 10.58.219.166 with SMTP id pp6mr4360001vec.1.1401339718692; Wed, 28 May 2014 22:01:58 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id te2si12438145vcb.101.2014.05.28.22.01.58 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 22:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hy4so13247858vcb.25 for <patchwork-forward@linaro.org>; Wed, 28 May 2014 22:01:58 -0700 (PDT) X-Received: by 10.58.161.168 with SMTP id xt8mr4160624veb.25.1401339718597; Wed, 28 May 2014 22:01:58 -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 ib8csp220vcb; Wed, 28 May 2014 22:01:58 -0700 (PDT) X-Received: by 10.224.0.70 with SMTP id 6mr6241463qaa.100.1401339718205; Wed, 28 May 2014 22:01:58 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w95si24626188qgd.87.2014.05.28.22.01.57 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 May 2014 22:01:58 -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 1WpsSG-0005Wf-Pv; Thu, 29 May 2014 05:00:40 +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 1WpsRt-0004FP-Tp for linux-arm-kernel@lists.infradead.org; Thu, 29 May 2014 05:00:18 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so12414538pbb.33 for <linux-arm-kernel@lists.infradead.org>; Wed, 28 May 2014 21:59:58 -0700 (PDT) X-Received: by 10.68.241.68 with SMTP id wg4mr5679037pbc.66.1401339598087; Wed, 28 May 2014 21:59:58 -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.55 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 21:59:57 -0700 (PDT) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: imx: Use PTR_ERR_OR_ZERO in mx31moboard-marxbot.c Date: Thu, 29 May 2014 10:27:13 +0530 Message-Id: <1401339434-26085-4-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_220018_020875_D89D0A74 X-CRM114-Status: GOOD ( 11.53 ) 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: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> 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.220.180 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/arch/arm/mach-imx/mx31moboard-marxbot.c b/arch/arm/mach-imx/mx31moboard-marxbot.c index 699d01a4fef8..2e62192394c1 100644 --- a/arch/arm/mach-imx/mx31moboard-marxbot.c +++ b/arch/arm/mach-imx/mx31moboard-marxbot.c @@ -13,6 +13,7 @@ */ #include <linux/delay.h> +#include <linux/err.h> #include <linux/gpio.h> #include <linux/init.h> #include <linux/interrupt.h> @@ -328,10 +329,8 @@ static int __init marxbot_usbh1_init(void) usbh1_pdata.otg = phy; pdev = imx31_add_mxc_ehci_hs(1, &usbh1_pdata); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - return 0; + return PTR_ERR_OR_ZERO(pdev); } static const struct fsl_usb2_platform_data usb_pdata __initconst = {
PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- arch/arm/mach-imx/mx31moboard-marxbot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)