Thread (4 messages) flat view 4 messages, 4 authors, 2016-04-13

Re: cxl: Delete an unnecessary check before the function call "kfree"

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-04-13 13:33:38
Also in: kernel-janitors, lkml

On Fri, 2015-06-11 at 10:05:46 UTC, SF Markus Elfring wrote:
From: Markus Elfring <redacted>
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 <redacted>
Reviewed-by: Andrew Donnellan <redacted>
Acked-by: Ian Munsie <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/1050e689a63baffdadcd33498c

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help