From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH] CPPC-CPUFreq: Delete an unnecessary check before the function call "kfree" Date: Fri, 6 Nov 2015 07:12:28 +0530 Message-ID: <20151106014228.GD3773@ubuntu> References: <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <563BB8DF.7020908@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pa0-f44.google.com ([209.85.220.44]:36611 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965402AbbKFBmc (ORCPT ); Thu, 5 Nov 2015 20:42:32 -0500 Received: by pacdm15 with SMTP id dm15so80610558pac.3 for ; Thu, 05 Nov 2015 17:42:32 -0800 (PST) Content-Disposition: inline In-Reply-To: <563BB8DF.7020908@users.sourceforge.net> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: SF Markus Elfring Cc: linux-pm@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall On 05-11-15, 21:15, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 5 Nov 2015 21:10:29 +0100 > > The kfree() 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 > --- > drivers/cpufreq/cppc_cpufreq.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Acked-by: Viresh Kumar -- viresh