Message ID | 1383724500-15568-1-git-send-email-duanj.fnst@cn.fujitsu.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <rtc-linux+bncBAABBVPM46JQKGQEYCZ7T2A@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-x23d.google.com (mail-pa0-x23d.google.com [IPv6:2607:f8b0:400e:c03::23d]) (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 1445C2C00CC for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2013 18:57:11 +1100 (EST) Received: by mail-pa0-f61.google.com with SMTP id kq14sf1987988pab.26 for <incoming@patchwork.ozlabs.org>; Tue, 05 Nov 2013 23:57:09 -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=WuteoOe7cLGu8TA2JfzzfVnF6OFyLbhd4twGDxGmktg=; b=TykrkR/OWa+FIgBhzNuGCthXwCURfZXqx/QkBVp1uBd+xcN273ksm7m3+lWNn68PUG Y7xp8PBSK1Rl0IQk6XLW23E0ir4ljma1oOogQdSLZC7/+WTWfaVwZ9pfzMAdpt/3v0Of VquywvWTYLok0hPVaZbIIe4JqWkn7tS1W33NHG+kifRCWcpNlM122JlAUigo0eJ+xPG6 T9NY1rXv+tHS+kh2Qk+uOwcIGNzOyMIB/TOOy92LZYic6R9xj4RetKxIKwMu/I+CI7b0 r7R3DDwJy+vVWN2+SkJocGhgxUdywx8j+mjDGty8+pJxjOABp0iVkxIZ8Cye0gXkl+x1 lvOQ== X-Received: by 10.182.96.135 with SMTP id ds7mr31272obb.1.1383724629885; Tue, 05 Nov 2013 23:57:09 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.182.129.166 with SMTP id nx6ls383125obb.53.gmail; Tue, 05 Nov 2013 23:57:09 -0800 (PST) X-Received: by 10.182.246.39 with SMTP id xt7mr651687obc.40.1383724629650; Tue, 05 Nov 2013 23:57:09 -0800 (PST) Received: from song.cn.fujitsu.com ([222.73.24.84]) by gmr-mx.google.com with ESMTP id zt1si54647pbc.0.2013.11.05.23.57.08 for <rtc-linux@googlegroups.com>; Tue, 05 Nov 2013 23:57:09 -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="8960236" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 06 Nov 2013 15:53:44 +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 rA67v6Vd027685; Wed, 6 Nov 2013 15:57:06 +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 2013110615551321-2803409 ; Wed, 6 Nov 2013 15:55:13 +0800 From: Duan Jiong <duanj.fnst@cn.fujitsu.com> To: kernel@pengutronix.de, linux@arm.linux.org.uk, a.zummo@towertech.it, airlied@linux.ie, dmitry.torokhov@gmail.com Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-input@vger.kernel.org, Duan Jiong <duanj.fnst@cn.fujitsu.com> Subject: [rtc-linux] [PATCH] libcrc32c: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO Date: Wed, 6 Nov 2013 15:55:00 +0800 Message-Id: <1383724500-15568-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:55:13, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/11/06 15:55:13, Serialize complete at 2013/11/06 15:55:13 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: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 |
diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c index 244f548..b3131f5 100644 --- a/lib/libcrc32c.c +++ b/lib/libcrc32c.c @@ -62,10 +62,7 @@ EXPORT_SYMBOL(crc32c); static int __init libcrc32c_mod_init(void) { tfm = crypto_alloc_shash("crc32c", 0, 0); - if (IS_ERR(tfm)) - return PTR_ERR(tfm); - - return 0; + return PTR_ERR_OR_ZERO(tfm); } static void __exit libcrc32c_mod_fini(void)
This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> --- lib/libcrc32c.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)