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

Staging: hv: netvsc: 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 fdb3c32c
...@@ -438,7 +438,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid, ...@@ -438,7 +438,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid,
RNDIS_MESSAGE_SIZE(struct rndis_query_request)); RNDIS_MESSAGE_SIZE(struct rndis_query_request));
if (!request) { if (!request) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto cleanup;
} }
/* Setup the rndis query */ /* Setup the rndis query */
...@@ -450,12 +450,12 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid, ...@@ -450,12 +450,12 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid,
ret = rndis_filter_send_request(dev, request); ret = rndis_filter_send_request(dev, request);
if (ret != 0) if (ret != 0)
goto Cleanup; goto cleanup;
t = wait_for_completion_timeout(&request->wait_event, 5*HZ); t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
if (t == 0) { if (t == 0) {
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto Cleanup; goto cleanup;
} }
/* Copy the response back */ /* Copy the response back */
...@@ -463,7 +463,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid, ...@@ -463,7 +463,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid,
if (query_complete->info_buflen > inresult_size) { if (query_complete->info_buflen > inresult_size) {
ret = -1; ret = -1;
goto Cleanup; goto cleanup;
} }
memcpy(result, memcpy(result,
...@@ -473,7 +473,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid, ...@@ -473,7 +473,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid,
*result_size = query_complete->info_buflen; *result_size = query_complete->info_buflen;
Cleanup: cleanup:
if (request) if (request)
put_rndis_request(dev, request); put_rndis_request(dev, request);
...@@ -512,7 +512,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev, ...@@ -512,7 +512,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev,
sizeof(u32)); sizeof(u32));
if (!request) { if (!request) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto cleanup;
} }
/* Setup the rndis set */ /* Setup the rndis set */
...@@ -526,7 +526,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev, ...@@ -526,7 +526,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev,
ret = rndis_filter_send_request(dev, request); ret = rndis_filter_send_request(dev, request);
if (ret != 0) if (ret != 0)
goto Cleanup; goto cleanup;
t = wait_for_completion_timeout(&request->wait_event, 5*HZ); t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
...@@ -543,7 +543,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev, ...@@ -543,7 +543,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev,
status = set_complete->status; status = set_complete->status;
} }
Cleanup: cleanup:
if (request) if (request)
put_rndis_request(dev, request); put_rndis_request(dev, request);
Exit: Exit:
...@@ -563,7 +563,7 @@ static int rndis_filter_init_device(struct rndis_device *dev) ...@@ -563,7 +563,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
RNDIS_MESSAGE_SIZE(struct rndis_initialize_request)); RNDIS_MESSAGE_SIZE(struct rndis_initialize_request));
if (!request) { if (!request) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto cleanup;
} }
/* Setup the rndis set */ /* Setup the rndis set */
...@@ -578,7 +578,7 @@ static int rndis_filter_init_device(struct rndis_device *dev) ...@@ -578,7 +578,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
ret = rndis_filter_send_request(dev, request); ret = rndis_filter_send_request(dev, request);
if (ret != 0) { if (ret != 0) {
dev->state = RNDIS_DEV_UNINITIALIZED; dev->state = RNDIS_DEV_UNINITIALIZED;
goto Cleanup; goto cleanup;
} }
...@@ -586,7 +586,7 @@ static int rndis_filter_init_device(struct rndis_device *dev) ...@@ -586,7 +586,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
if (t == 0) { if (t == 0) {
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto Cleanup; goto cleanup;
} }
init_complete = &request->response_msg.msg.init_complete; init_complete = &request->response_msg.msg.init_complete;
...@@ -599,7 +599,7 @@ static int rndis_filter_init_device(struct rndis_device *dev) ...@@ -599,7 +599,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
ret = -EINVAL; ret = -EINVAL;
} }
Cleanup: cleanup:
if (request) if (request)
put_rndis_request(dev, request); put_rndis_request(dev, request);
...@@ -615,7 +615,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev) ...@@ -615,7 +615,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
request = get_rndis_request(dev, REMOTE_NDIS_HALT_MSG, request = get_rndis_request(dev, REMOTE_NDIS_HALT_MSG,
RNDIS_MESSAGE_SIZE(struct rndis_halt_request)); RNDIS_MESSAGE_SIZE(struct rndis_halt_request));
if (!request) if (!request)
goto Cleanup; goto cleanup;
/* Setup the rndis set */ /* Setup the rndis set */
halt = &request->request_msg.msg.halt_req; halt = &request->request_msg.msg.halt_req;
...@@ -626,7 +626,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev) ...@@ -626,7 +626,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
dev->state = RNDIS_DEV_UNINITIALIZED; dev->state = RNDIS_DEV_UNINITIALIZED;
Cleanup: cleanup:
if (request) if (request)
put_rndis_request(dev, request); put_rndis_request(dev, request);
return; return;
......
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