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

Staging: hv: mousevsc: Get rid of unnecessary DPRINT calls

Get rid of unnecessary DPRINT calls.
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 da5969e4
...@@ -665,10 +665,8 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len) ...@@ -665,10 +665,8 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
hid_dev->ll_driver = &mousevsc_ll_driver; hid_dev->ll_driver = &mousevsc_ll_driver;
hid_dev->driver = &mousevsc_hid_driver; hid_dev->driver = &mousevsc_hid_driver;
if (hid_parse_report(hid_dev, packet, len)) { if (hid_parse_report(hid_dev, packet, len))
DPRINT_INFO(INPUTVSC_DRV, "Unable to call hd_parse_report");
return; return;
}
hid_dev->bus = BUS_VIRTUAL; hid_dev->bus = BUS_VIRTUAL;
hid_dev->vendor = input_device->hid_dev_info.vendor; hid_dev->vendor = input_device->hid_dev_info.vendor;
...@@ -797,11 +795,8 @@ static int mousevsc_probe(struct hv_device *dev, ...@@ -797,11 +795,8 @@ 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 */
ret = mousevsc_on_device_add(dev, NULL); ret = mousevsc_on_device_add(dev, NULL);
if (ret != 0) { if (ret != 0)
DPRINT_ERR(INPUTVSC_DRV, "unable to add input vsc device");
return -1; return -1;
}
return 0; return 0;
} }
...@@ -809,7 +804,6 @@ static int mousevsc_probe(struct hv_device *dev, ...@@ -809,7 +804,6 @@ static int mousevsc_probe(struct hv_device *dev,
static int mousevsc_remove(struct hv_device *dev) static int mousevsc_remove(struct hv_device *dev)
{ {
struct mousevsc_dev *input_dev = hv_get_drvdata(dev); struct mousevsc_dev *input_dev = hv_get_drvdata(dev);
int ret;
if (input_dev->connected) { if (input_dev->connected) {
hidinput_disconnect(input_dev->hid_device); hidinput_disconnect(input_dev->hid_device);
...@@ -821,13 +815,7 @@ static int mousevsc_remove(struct hv_device *dev) ...@@ -821,13 +815,7 @@ static int mousevsc_remove(struct hv_device *dev)
* Call to the vsc driver to let it know that the device * Call to the vsc driver to let it know that the device
* is being removed * is being removed
*/ */
ret = mousevsc_on_device_remove(dev); return mousevsc_on_device_remove(dev);
if (ret != 0) {
DPRINT_ERR(INPUTVSC_DRV,
"unable to remove vsc device (ret %d)", ret);
}
return ret;
} }
static const struct hv_vmbus_device_id id_table[] = { static const struct hv_vmbus_device_id id_table[] = {
......
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