From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:55:09 +0000 (-0700) Subject: Staging: hv: Cleanup mouse_vsc_initialize() X-Git-Tag: v3.0-rc1~336^2~351 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be3c8195311bcd9c37bef05763da9a78cf52063b;p=karo-tx-linux.git Staging: hv: Cleanup mouse_vsc_initialize() Now that we have gotten rid of the indirection, cleanup mouse_vsc_initialize(). 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/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 41bfa3f57e15..523c428435cc 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c @@ -980,19 +980,11 @@ static void mousevsc_drv_exit(void) static int mouse_vsc_initialize(struct hv_driver *driver) { - struct mousevsc_drv_obj *input_drv = - (struct mousevsc_drv_obj *)driver; - int ret = 0; - driver->name = driver_name; memcpy(&driver->dev_type, &mouse_guid, sizeof(struct hv_guid)); - /* Setup the dispatch table */ - input_drv->base.dev_add = mousevsc_on_device_add; - input_drv->base.dev_rm = mousevsc_on_device_remove; - - return ret; + return 0; }