Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754399AbaG2WcZ (ORCPT ); Tue, 29 Jul 2014 18:32:25 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:49813 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbaG2WcY (ORCPT ); Tue, 29 Jul 2014 18:32:24 -0400 Date: Tue, 29 Jul 2014 15:32:23 -0700 (PDT) Message-Id: <20140729.153223.1711793933586070215.davem@davemloft.net> To: himangi774@gmail.com Cc: xeb@mail.ru, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] net/ipv4: Use IS_ERR_OR_NULL From: David Miller In-Reply-To: <20140727070651.GA4787@himangi-Dell> References: <20140727070651.GA4787@himangi-Dell> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.7 (shards.monkeyblade.net [149.20.54.216]); Tue, 29 Jul 2014 15:32:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Himangi Saraogi Date: Sun, 27 Jul 2014 12:36:51 +0530 > This patch introduces the use of the macro IS_ERR_OR_NULL in place of > tests for NULL and IS_ERR. > > The following Coccinelle semantic patch was used for making the change: > > @@ > expression e; > @@ > > - e == NULL || IS_ERR(e) > + IS_ERR_OR_NULL(e) > || ... > > Signed-off-by: Himangi Saraogi > Acked-by: Julia Lawall Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/