From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Wed, 19 Nov 2014 20:20:26 +0000 Subject: Re: [PATCH 1/1] net: pktgen: Deletion of an unnecessary check before the function call "proc_remove" Message-Id: <20141119.152026.2218359090239941545.davem@davemloft.net> List-Id: References: <5317A59D.4@users.sourceforge.net> <546B9AF5.9050809@users.sourceforge.net> In-Reply-To: <546B9AF5.9050809@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: elfring@users.sourceforge.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, cocci@systeme.lip6.fr From: SF Markus Elfring Date: Tue, 18 Nov 2014 20:16:05 +0100 > From: Markus Elfring > Date: Tue, 18 Nov 2014 20:10:34 +0100 > > The proc_remove() 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, thanks.