Message ID | 1401339434-26085-5-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBTP6TKOAKGQEZUCZTHQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9DB5020068 for <linaro@patches.linaro.org>; Thu, 29 May 2014 05:02:05 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wo20sf58633674obc.11 for <linaro@patches.linaro.org>; Wed, 28 May 2014 22:02:05 -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=A3DoW//muQtIlWJ+XE+7SRMPDwsVbt9p4qTndXBAYhU=; b=VXuM7Fu4fqp35gmh+y+raOXsuKvvi8dIyWJVtK3dD9uQB2COtAiVd4c5hzF43j/tuU d/j9ldDSGY2iXxw5b2ooI3J6ENbvuinzqITC/UP16yqma1Txa2U7QVS9NhD7PoCbBUnV wRab23jXRxCTXPANXwzqm+W5h+PCuQL+lgJTSKmJ6XjpZdl9LbBOlqix0xy1oldr6ld4 crRdnzyBrm9BpQb3/vZn3FANeqw35sQRHAY07JhyEfKIUYv54R+JJwhb4saTumJuJkl1 2yU979hUDLdLYE1hoj68NUmWITq2h3PBxrviS/hWHFTAhdqMTNDpn+ShEp0bftVcZrxw LF7w== X-Gm-Message-State: ALoCoQkVrxGX2oY06YVisCLKUGhG3KjabUOw6us/jiWMPCqzMohOSuxztJ6+rtmZuQnio+hTpAhG X-Received: by 10.182.106.229 with SMTP id gx5mr2118447obb.31.1401339725218; Wed, 28 May 2014 22:02:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.1 with SMTP id p1ls389258qga.97.gmail; Wed, 28 May 2014 22:02:05 -0700 (PDT) X-Received: by 10.52.93.201 with SMTP id cw9mr93489vdb.80.1401339725065; Wed, 28 May 2014 22:02:05 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ui7si12442250vcb.92.2014.05.28.22.02.05 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 22:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id10so1414452vcb.41 for <patchwork-forward@linaro.org>; Wed, 28 May 2014 22:02:05 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr4265322vcx.7.1401339724998; Wed, 28 May 2014 22:02:04 -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 ib8csp229vcb; Wed, 28 May 2014 22:02:04 -0700 (PDT) X-Received: by 10.224.13.133 with SMTP id c5mr6382471qaa.80.1401339724580; Wed, 28 May 2014 22:02:04 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id o8si3386136qay.4.2014.05.28.22.02.04 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 May 2014 22:02:04 -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 1WpsST-0005bo-QV; Thu, 29 May 2014 05:00:53 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpsRx-0004G5-T2 for linux-arm-kernel@lists.infradead.org; Thu, 29 May 2014 05:00:22 +0000 Received: by mail-pa0-f41.google.com with SMTP id kx10so2372680pab.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 28 May 2014 22:00:00 -0700 (PDT) X-Received: by 10.66.65.169 with SMTP id y9mr5172428pas.145.1401339600901; Wed, 28 May 2014 22:00:00 -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.58 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 22:00:00 -0700 (PDT) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] ARM: imx: Use PTR_ERR_OR_ZERO in mx31moboard-smartbot.c Date: Thu, 29 May 2014 10:27:14 +0530 Message-Id: <1401339434-26085-5-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_220021_988246_ABFF7E19 X-CRM114-Status: GOOD ( 12.14 ) 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.220.41 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.182 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-smartbot.c b/arch/arm/mach-imx/mx31moboard-smartbot.c index 4b3d66eb8d34..b73a4b36e040 100644 --- a/arch/arm/mach-imx/mx31moboard-smartbot.c +++ b/arch/arm/mach-imx/mx31moboard-smartbot.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> @@ -142,10 +143,8 @@ static int __init smartbot_otg_host_init(void) return -ENODEV; pdev = imx31_add_mxc_ehci_otg(&otg_host_pdata); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - return 0; + return PTR_ERR_OR_ZERO(pdev); } #else static inline int smartbot_otg_host_init(void) { return 0; }
PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- arch/arm/mach-imx/mx31moboard-smartbot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)