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

Staging: hv: Cleanup mouse_vsc_initialize()

Now that we have gotten rid of the indirection, cleanup
mouse_vsc_initialize().
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 b51f88a1
...@@ -980,19 +980,11 @@ static void mousevsc_drv_exit(void) ...@@ -980,19 +980,11 @@ static void mousevsc_drv_exit(void)
static int mouse_vsc_initialize(struct hv_driver *driver) 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; driver->name = driver_name;
memcpy(&driver->dev_type, &mouse_guid, memcpy(&driver->dev_type, &mouse_guid,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
/* Setup the dispatch table */ return 0;
input_drv->base.dev_add = mousevsc_on_device_add;
input_drv->base.dev_rm = mousevsc_on_device_remove;
return ret;
} }
......
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