From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qlPrv10SHzDqBC for ; Wed, 13 Apr 2016 23:33:35 +1000 (AEST) In-Reply-To: <563C7B7A.2080403@users.sourceforge.net> To: SF Markus Elfring , Ian Munsie , Michael Neuling , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML Subject: Re: cxl: Delete an unnecessary check before the function call "kfree" Message-Id: <3qlPrt5jf7z9t3t@ozlabs.org> Date: Wed, 13 Apr 2016 23:33:34 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2015-06-11 at 10:05:46 UTC, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Nov 2015 11:00:23 +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 > Reviewed-by: Andrew Donnellan > Acked-by: Ian Munsie Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/1050e689a63baffdadcd33498c cheers