]> git.baikalelectronics.ru Git - kernel.git/commit
net: Hyper-V: Deletion of an unnecessary check before the function call "vfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 25 Nov 2014 21:33:45 +0000 (22:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Nov 2014 22:22:48 +0000 (17:22 -0500)
commita514f9f35dc1e0ae0bf3284594b751943e56ea70
tree9647e49a7fdb4e00bf1322125a0d980db1642fcd
parentc43af5c91dde642c70e6fba090ba8b1c151e8843
net: Hyper-V: 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: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c