]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitde7017625e8b642506b7e56574353cc9695ca357
treef64df03a0c459ac421139fa7ef3e15b7b05d07f1
parent1b4b32c6b88b3a0985b9448f52b3a58021de5653
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