]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Delete an unnecessary check before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 6 Nov 2015 10:00:23 +0000 (11:00 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 12 Apr 2016 11:05:21 +0000 (21:05 +1000)
commit1b3de8dc218f1e9707ad62dfba02b02fe0742075
tree1af0608ec31c636af25167ade9bd9521e5ac3eb7
parent5e93fc17f25de22fd8e97b5a981716225954a88d
cxl: Delete an unnecessary check before the function call "kfree"

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@users.sourceforge.net>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/context.c