Skip to content

Commit

Permalink
Staging: hv: Cleanup mouse_vsc_initialize()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent b51f88a commit be3c819
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit be3c819

Please sign in to comment.