Commit 3fae5c8f authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Get rid of the indirection in invoking netvsc_device_remove()

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 58de3fc6
...@@ -809,8 +809,7 @@ int rndis_filter_device_remove(struct hv_device *dev) ...@@ -809,8 +809,7 @@ int rndis_filter_device_remove(struct hv_device *dev)
kfree(rndis_dev); kfree(rndis_dev);
net_dev->extension = NULL; net_dev->extension = NULL;
/* Pass control to inner driver to remove the device */ netvsc_device_remove(dev);
rndis_filter.inner_drv.base.dev_rm(dev);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment