]> 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)
commit0e8242276033be40fa7dbc367c3272b792a8b23e
tree9647e49a7fdb4e00bf1322125a0d980db1642fcd
parentcf6cdff313f29b30506e0947f2330f6cfc212e2c
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