Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754453AbaADAfm (ORCPT ); Fri, 3 Jan 2014 19:35:42 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:35383 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754196AbaADAfl (ORCPT ); Fri, 3 Jan 2014 19:35:41 -0500 Date: Fri, 03 Jan 2014 19:35:39 -0500 (EST) Message-Id: <20140103.193539.332685938065529152.davem@davemloft.net> To: grantgrundler@gmail.com Cc: Julia.Lawall@lip6.fr, grundler@parisc-linux.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: tulip: delete useless tests on netdev_priv From: David Miller In-Reply-To: References: <1388680129-13661-1-git-send-email-Julia.Lawall@lip6.fr> 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.1 (shards.monkeyblade.net [0.0.0.0]); Fri, 03 Jan 2014 16:35:40 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 33 From: Grant Grundler Date: Thu, 2 Jan 2014 07:57:26 -0800 > On Thu, Jan 2, 2014 at 8:28 AM, Julia Lawall wrote: >> From: Julia Lawall >> >> Netdev_priv performs an addition, not a pointer dereference, so it seems >> quit unlikely that its result would ever be NULL. > > LGTM. > > > >> A semantic patch that makes this change is as follows: >> (http://coccinelle.lip6.fr/) >> >> // >> @@ >> statement S; >> @@ >> >> - if (!netdev_priv(...)) S >> // >> >> Signed-off-by: Julia Lawall > > Acked-by: Grant Grundler Applied, thanks everyone. -- 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/