summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-28 18:44:19 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-07-03 01:22:25 (GMT)
commitbd4578bc84a8c8a390cf6002539e75447e78e935 (patch)
tree8ba05621e532b89a5ded6afd9256f919c149de2b /drivers/net/hyperv
parent179d80aff82bf8dff9db30589fe5a2297c454d35 (diff)
downloadlinux-bd4578bc84a8c8a390cf6002539e75447e78e935.tar.xz
drivers/net/hyperv/netvsc.c: remove unnecessary null test before kfree
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: netdev@vger.kernel.org Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r--drivers/net/hyperv/netvsc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 4ed38ea..f13e0ac 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -1094,9 +1094,7 @@ close:
vmbus_close(device->channel);
cleanup:
-
- if (net_device)
- kfree(net_device);
+ kfree(net_device);
return ret;
}