Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760698AbcDMNdi (ORCPT ); Wed, 13 Apr 2016 09:33:38 -0400 Received: from ozlabs.org ([103.22.144.67]:36916 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758251AbcDMNdg (ORCPT ); Wed, 13 Apr 2016 09:33:36 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 1050e689a63baffdadcd33498c15d859922504c0 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 634 Lines: 18 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