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

Staging: hv: mousevsc: Cleanup mousevsc_on_device_add()

Cleanup  mousevsc_on_device_add().
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6e56f27c
...@@ -513,12 +513,10 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len) ...@@ -513,12 +513,10 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
input_device->hid_device = hid_dev; input_device->hid_device = hid_dev;
} }
static int mousevsc_on_device_add(struct hv_device *device, static int mousevsc_on_device_add(struct hv_device *device)
void *additional_info)
{ {
int ret = 0; int ret = 0;
struct mousevsc_dev *input_dev; struct mousevsc_dev *input_dev;
struct hv_driver *input_drv;
input_dev = alloc_input_device(device); input_dev = alloc_input_device(device);
...@@ -551,9 +549,6 @@ static int mousevsc_on_device_add(struct hv_device *device, ...@@ -551,9 +549,6 @@ static int mousevsc_on_device_add(struct hv_device *device,
return ret; return ret;
} }
input_drv = drv_to_hv_drv(input_dev->device->device.driver);
/* Send the report desc back up */ /* Send the report desc back up */
/* workaround SA-167 */ /* workaround SA-167 */
...@@ -573,7 +568,7 @@ static int mousevsc_probe(struct hv_device *dev, ...@@ -573,7 +568,7 @@ static int mousevsc_probe(struct hv_device *dev,
{ {
/* Call to the vsc driver to add the device */ /* Call to the vsc driver to add the device */
return mousevsc_on_device_add(dev, NULL); return mousevsc_on_device_add(dev);
} }
......
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