From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:55:02 +0000 (-0700) Subject: Staging: hv: Get rid of the indirection in invoking netvsc_device_remove() X-Git-Tag: v3.0-rc1~336^2~358 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3fae5c8f9cc054df8fb524124f5ff1f5d1fbd9af;p=karo-tx-linux.git Staging: hv: Get rid of the indirection in invoking netvsc_device_remove() Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index 299b14e71ff4..f9c18fa1f16e 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -809,8 +809,7 @@ int rndis_filter_device_remove(struct hv_device *dev) kfree(rndis_dev); net_dev->extension = NULL; - /* Pass control to inner driver to remove the device */ - rndis_filter.inner_drv.base.dev_rm(dev); + netvsc_device_remove(dev); return 0; }