From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:55:12 +0000 (-0700) Subject: Staging: hv: Cleanup calls to cleanup in storvsc_drv.c X-Git-Tag: v3.0-rc1~336^2~348 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=205dec163840cb74ee47c878f4dd04820169b4aa;p=karo-tx-linux.git Staging: hv: Cleanup calls to cleanup in storvsc_drv.c cleanup() is an empty function; get rid of calls to this. 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/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 5624d26ba4ce..0d7e43bf58d1 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -833,7 +833,6 @@ static int storvsc_drv_exit_cb(struct device *dev, void *data) static void storvsc_drv_exit(void) { - struct storvsc_driver *storvsc_drv_obj = &storvsc_drv; struct hv_driver *drv = &storvsc_drv.base; struct device *current_dev = NULL; int ret; @@ -854,9 +853,6 @@ static void storvsc_drv_exit(void) device_unregister(current_dev); } - if (storvsc_drv_obj->base.cleanup) - storvsc_drv_obj->base.cleanup(&storvsc_drv_obj->base); - vmbus_child_driver_unregister(&drv->driver); return; }