net: fec: Delete unnecessary checks before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 11:56:42 +0000 (12:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:26:04 +0000 (00:26 -0800)
commit1b4b32c6b88b3a0985b9448f52b3a58021de5653
treeefebc228d931468ab1b181599a8306601d3cf4cb
parent2d4ad4f6903f3a7b4eccb6e7eeb82f22edd648ea
net: fec: 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c