Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752018AbaLFFKc (ORCPT ); Sat, 6 Dec 2014 00:10:32 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:60142 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbaLFFK2 (ORCPT ); Sat, 6 Dec 2014 00:10:28 -0500 Date: Fri, 05 Dec 2014 21:14:58 -0800 (PST) Message-Id: <20141205.211458.852732910784554172.davem@davemloft.net> To: elfring@users.sourceforge.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH 1/1] net-ipvlan: Deletion of an unnecessary check before the function call "free_percpu" From: David Miller In-Reply-To: <5479E693.3010200@users.sourceforge.net> References: <5317A59D.4@users.sourceforge.net> <5479E693.3010200@users.sourceforge.net> X-Mailer: Mew version 6.4 on Emacs 23.4 / 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]); Fri, 05 Dec 2014 21:10:28 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SF Markus Elfring Date: Sat, 29 Nov 2014 16:30:27 +0100 > From: Markus Elfring > Date: Sat, 29 Nov 2014 16:23:20 +0100 > > The free_percpu() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring 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/