diff options
author | Stephen Hemminger <sthemmin@microsoft.com> | 2016-08-23 22:17:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 22:05:37 +0300 |
commit | e08f3ea586d4145e36c77f0dd1602374b5d7e928 (patch) | |
tree | 8ebf3160f07af8bb53dd778141977d0fd30cfce1 /drivers/net/hyperv/netvsc.c | |
parent | e5a78fad4f1eb49064e4c35d0a4263424b12124c (diff) | |
download | linux-e08f3ea586d4145e36c77f0dd1602374b5d7e928.tar.xz |
hv_netvsc: make device_remove void
Always returns 0 and no callers check.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r-- | drivers/net/hyperv/netvsc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 110bbb8a0baa..2ece27ad8429 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -648,7 +648,7 @@ static void netvsc_disconnect_vsp(struct hv_device *device) /* * netvsc_device_remove - Callback when the root bus device is removed */ -int netvsc_device_remove(struct hv_device *device) +void netvsc_device_remove(struct hv_device *device) { struct net_device *ndev = hv_get_drvdata(device); struct net_device_context *net_device_ctx = netdev_priv(ndev); @@ -670,7 +670,6 @@ int netvsc_device_remove(struct hv_device *device) /* Release all resources */ vfree(net_device->sub_cb_buf); free_netvsc_device(net_device); - return 0; } #define RING_AVAIL_PERCENT_HIWATER 20 |