]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Delete unnecessary checks before kfree()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Feb 2015 12:55:53 +0000 (13:55 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:50:14 +0000 (18:50 +1100)
commita3c2ab3525df01b64a95f35d7ea49378891fb0b2
tree9c56c2acc95efa338ced09b2bdefd0ac9d194e2f
parentf4308fc2577a5935aacaa8d77e55fae45322fd75
powerpc: Delete unnecessary checks before 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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/rheap.c
arch/powerpc/platforms/cell/celleb_pci.c