]> git.baikalelectronics.ru Git - kernel.git/commit
net: ep93xx_eth: Delete unnecessary checks before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 14:56:58 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:35:00 +0000 (00:35 -0800)
commite8511d8d8b132d2ac85b8b33fd8485f3bc341ce8
treeff8a64beb4b5f95526e66dd90f5df58cdb41a6a3
parentca1ac160ba3bf6d8c64211ebe9703ac085a69417
net: ep93xx_eth: Delete unnecessary checks 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>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cirrus/ep93xx_eth.c