From patchwork Wed Nov 6 07:54:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Duan Jiong X-Patchwork-Id: 288753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pd0-x23a.google.com (mail-pd0-x23a.google.com [IPv6:2607:f8b0:400e:c02::23a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 920962C0086 for ; Wed, 6 Nov 2013 18:56:33 +1100 (EST) Received: by mail-pd0-f186.google.com with SMTP id q10sf2049352pdj.3 for ; Tue, 05 Nov 2013 23:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=7kgwHtsldNAmGSVwcUBwBwybpT25HSAuinYMjpajCe0=; b=yxPZTX3uRlek9Y+jq1zMZMsZVD+ez0IJxnl5jObJ/FqIPk++xnQTGOxfZ9RghE2z21 jvjKz5l7AlUU3ZOCd9s3yyxUkVd8ZDlm3XhCuyB5PQ3Z2U+jfWuL+L552DhvUmoemdRJ UaxZIiEP8O9AAsFJgsGpWWuRrmk01xQ7ViR1NSfFWz/3KPrQHpq/0khWdibuQNtI+uVf zE5wuaxy094A7921Qplq3G+jS719rfmJ5Jb009uNgyERLUlgluwRHHBbHR626UJgYaMC JlgCNKeiQL1Qx7XB6gKEyoRPkAh2bHV2Kgox3rfgqzyZQeEYzOvKUNR61EFiIhNvaU8p xi7Q== X-Received: by 10.182.61.51 with SMTP id m19mr455obr.30.1383724591436; Tue, 05 Nov 2013 23:56:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.182.22.105 with SMTP id c9ls378304obf.19.gmail; Tue, 05 Nov 2013 23:56:31 -0800 (PST) X-Received: by 10.182.220.170 with SMTP id px10mr588440obc.35.1383724591108; Tue, 05 Nov 2013 23:56:31 -0800 (PST) Received: from song.cn.fujitsu.com ([222.73.24.84]) by gmr-mx.google.com with ESMTP id xi1si6641287pab.1.2013.11.05.23.56.29 for ; Tue, 05 Nov 2013 23:56:31 -0800 (PST) Received-SPF: neutral (google.com: 222.73.24.84 is neither permitted nor denied by best guess record for domain of duanj.fnst@cn.fujitsu.com) client-ip=222.73.24.84; X-IronPort-AV: E=Sophos;i="4.93,644,1378828800"; d="scan'208";a="8960227" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 06 Nov 2013 15:53:05 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id rA67uPK3027635; Wed, 6 Nov 2013 15:56:25 +0800 Received: from duanjiong.fnst.cn.fujitsu.com ([10.167.225.86]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013110615543263-2803390 ; Wed, 6 Nov 2013 15:54:32 +0800 From: Duan Jiong To: kernel@pengutronix.de, linux@arm.linux.org.uk, a.zummo@towertech.it, airlied@linux.ie Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, Duan Jiong Subject: [rtc-linux] [PATCH] ethernet: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO Date: Wed, 6 Nov 2013 15:54:12 +0800 Message-Id: <1383724452-15428-1-git-send-email-duanj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/11/06 15:54:32, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/11/06 15:54:33, Serialize complete at 2013/11/06 15:54:33 X-Original-Sender: duanj.fnst@cn.fujitsu.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 222.73.24.84 is neither permitted nor denied by best guess record for domain of duanj.fnst@cn.fujitsu.com) smtp.mail=duanj.fnst@cn.fujitsu.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong --- drivers/net/ethernet/8390/apne.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/8390/apne.c b/drivers/net/ethernet/8390/apne.c index 912ed7a..e41e3af 100644 --- a/drivers/net/ethernet/8390/apne.c +++ b/drivers/net/ethernet/8390/apne.c @@ -551,9 +551,7 @@ static struct net_device *apne_dev; static int __init apne_module_init(void) { apne_dev = apne_probe(-1); - if (IS_ERR(apne_dev)) - return PTR_ERR(apne_dev); - return 0; + return PTR_ERR_OR_ZERO(apne_dev); } static void __exit apne_module_exit(void)