hv_netvsc: make device_remove void
authorStephen Hemminger <sthemmin@microsoft.com>
Tue, 23 Aug 2016 19:17:50 +0000 (12:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 19:05:37 +0000 (12:05 -0700)
Always returns 0 and no callers check.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c

index b58e5592a5d507531b24b02e63fde24176281771..8031deeb0a4040601ba0ecda084aa21a1392c23f 100644 (file)
@@ -173,7 +173,7 @@ struct rndis_device {
 struct rndis_message;
 struct netvsc_device;
 int netvsc_device_add(struct hv_device *device, void *additional_info);
-int netvsc_device_remove(struct hv_device *device);
+void netvsc_device_remove(struct hv_device *device);
 int netvsc_send(struct hv_device *device,
                struct hv_netvsc_packet *packet,
                struct rndis_message *rndis_msg,
index 110bbb8a0baac50187d9d77c6cbc48bd8fd9557a..2ece27ad842966a378363922394a556e36baf4a8 100644 (file)
@@ -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