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

Staging: hv: mouse: Change the jump label Cleanup to cleanup

Change the jump label "Cleanup" to "cleanup".
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 327efbae
...@@ -336,7 +336,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device, ...@@ -336,7 +336,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
if (!input_device->hid_desc) { if (!input_device->hid_desc) {
pr_err("unable to allocate hid descriptor - size %d", desc->bLength); pr_err("unable to allocate hid descriptor - size %d", desc->bLength);
goto Cleanup; goto cleanup;
} }
memcpy(input_device->hid_desc, desc, desc->bLength); memcpy(input_device->hid_desc, desc, desc->bLength);
...@@ -349,7 +349,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device, ...@@ -349,7 +349,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
if (!input_device->report_desc) { if (!input_device->report_desc) {
pr_err("unable to allocate report descriptor - size %d", pr_err("unable to allocate report descriptor - size %d",
input_device->report_desc_size); input_device->report_desc_size);
goto Cleanup; goto cleanup;
} }
memcpy(input_device->report_desc, memcpy(input_device->report_desc,
...@@ -376,7 +376,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device, ...@@ -376,7 +376,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
if (ret != 0) { if (ret != 0) {
pr_err("unable to send synthhid device info ack - ret %d", pr_err("unable to send synthhid device info ack - ret %d",
ret); ret);
goto Cleanup; goto cleanup;
} }
input_device->device_wait_condition = 1; input_device->device_wait_condition = 1;
...@@ -384,7 +384,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device, ...@@ -384,7 +384,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
return; return;
Cleanup: cleanup:
kfree(input_device->hid_desc); kfree(input_device->hid_desc);
input_device->hid_desc = NULL; input_device->hid_desc = NULL;
...@@ -603,7 +603,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device) ...@@ -603,7 +603,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED); VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
if (ret != 0) { if (ret != 0) {
pr_err("unable to send synthhid protocol request."); pr_err("unable to send synthhid protocol request.");
goto Cleanup; goto cleanup;
} }
input_dev->protocol_wait_condition = 0; input_dev->protocol_wait_condition = 0;
...@@ -611,7 +611,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device) ...@@ -611,7 +611,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
input_dev->protocol_wait_condition, msecs_to_jiffies(1000)); input_dev->protocol_wait_condition, msecs_to_jiffies(1000));
if (input_dev->protocol_wait_condition == 0) { if (input_dev->protocol_wait_condition == 0) {
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto Cleanup; goto cleanup;
} }
response = &input_dev->protocol_resp; response = &input_dev->protocol_resp;
...@@ -620,7 +620,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device) ...@@ -620,7 +620,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
pr_err("synthhid protocol request failed (version %d)", pr_err("synthhid protocol request failed (version %d)",
SYNTHHID_INPUT_VERSION); SYNTHHID_INPUT_VERSION);
ret = -1; ret = -1;
goto Cleanup; goto cleanup;
} }
input_dev->device_wait_condition = 0; input_dev->device_wait_condition = 0;
...@@ -628,7 +628,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device) ...@@ -628,7 +628,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
input_dev->device_wait_condition, msecs_to_jiffies(1000)); input_dev->device_wait_condition, msecs_to_jiffies(1000));
if (input_dev->device_wait_condition == 0) { if (input_dev->device_wait_condition == 0) {
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto Cleanup; goto cleanup;
} }
/* /*
...@@ -640,7 +640,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device) ...@@ -640,7 +640,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
else else
ret = -1; ret = -1;
Cleanup: cleanup:
put_input_device(device); put_input_device(device);
return ret; return ret;
...@@ -658,7 +658,7 @@ static int mousevsc_on_device_add(struct hv_device *device, ...@@ -658,7 +658,7 @@ static int mousevsc_on_device_add(struct hv_device *device,
if (!input_dev) { if (!input_dev) {
ret = -1; ret = -1;
goto Cleanup; goto cleanup;
} }
input_dev->init_complete = false; input_dev->init_complete = false;
...@@ -711,7 +711,7 @@ static int mousevsc_on_device_add(struct hv_device *device, ...@@ -711,7 +711,7 @@ static int mousevsc_on_device_add(struct hv_device *device,
input_dev->init_complete = true; input_dev->init_complete = true;
Cleanup: cleanup:
return ret; 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