]> git.baikalelectronics.ru Git - kernel.git/commit
net: cassini: Deletion of an unnecessary check before the function call "vfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 29 Nov 2014 13:34:59 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Dec 2014 05:14:19 +0000 (21:14 -0800)
commit21e6d3cf8def144f267ccc527ec1c43d50ab4f10
tree87f1b1e2a78b24248e77c743f6f8bbe6c87c75e5
parent53fbc625a9a12cd02f86c7eef9d43415189660ac
net: cassini: Deletion of an unnecessary check before the function call "vfree"

The vfree() function performs also input parameter validation.
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/sun/cassini.c