From: Julia Lawall Subject: Re: [PATCH] fix ifnullfree.cocci warnings Date: Tue, 14 Aug 2018 16:10:26 +0200 (CEST) Message-ID: References: <20180814140344.GB5810@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20180814140344.GB5810@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: Julia Lawall , Wu Zhigang , kbuild-all@01.org, sof-ci-monitor@eclists.intel.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Ranjani Sridharan , Rander Wang , Pan Xiuli , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org List-Id: alsa-devel@alsa-project.org On Tue, 14 Aug 2018, Mark Brown wrote: > On Tue, Aug 14, 2018 at 12:57:57PM +0200, Julia Lawall wrote: > > From: kbuild test robot > > > > NULL check before some freeing functions is not needed. > > > > Based on checkpatch warning > > "kfree(NULL) is safe this check is probably not required" > > and kfreeaddr.cocci by Julia Lawall. > > > > Generated by: scripts/coccinelle/free/ifnullfree.cocci > > > > Fixes: 0099cc17a399 ("ASoC:topology:avoid error log and oops during topology free.") > > This doesn't apply against current code, please check and resend (the > above commit isn't in my tree: > > $ git show 0099cc17a399 > fatal: ambiguous argument '0099cc17a399': unknown revision or path not in the working tree. Sorry, I didn't keep the tree information. julia