cxl: Delete an unnecessary check before the function call "kfree"
Michael Ellerman
mpe at ellerman.id.au
Wed Apr 13 23:33:34 AEST 2016
On Fri, 2015-06-11 at 10:05:46 UTC, SF Markus Elfring wrote:
> From: Markus Elfring <elfring at users.sourceforge.net>
> 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 <elfring at users.sourceforge.net>
> Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> Acked-by: Ian Munsie <imunsie at au1.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/1050e689a63baffdadcd33498c
cheers
More information about the Linuxppc-dev
mailing list