Staging: hv: Cleanup mouse_vsc_initialize()
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:09 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:48:52 +0000 (13:48 -0700)
Now that we have gotten rid of the indirection, cleanup
mouse_vsc_initialize().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/hv_mouse.c

index 41bfa3f57e159be629228c70efc24d9db7079a27..523c428435ccf7f864e818ff3e9bee3009cf55d7 100644 (file)
@@ -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;
 }