]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: Delete an unnecessary check before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 12:17:48 +0000 (13:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:26:23 +0000 (00:26 -0800)
commit89805632604b6847383fca7786b5b52c9501c1e2
treef64df03a0c459ac421139fa7ef3e15b7b05d07f1
parent0f74596d7b0d6d4784a9908c500c29d2ec5c007f
netxen: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c