Skip to content

Commit

Permalink
Staging: hv: netvsc: Cleanup error returns in rndis_filter_init_device()
Browse files Browse the repository at this point in the history
Use standard Linux error codes.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent 58ef397 commit bc49b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/hv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
request = get_rndis_request(dev, REMOTE_NDIS_INITIALIZE_MSG,
RNDIS_MESSAGE_SIZE(struct rndis_initialize_request));
if (!request) {
ret = -1;
ret = -ENOMEM;
goto Cleanup;
}

Expand Down Expand Up @@ -596,7 +596,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
ret = 0;
} else {
dev->state = RNDIS_DEV_UNINITIALIZED;
ret = -1;
ret = -EINVAL;
}

Cleanup:
Expand Down

0 comments on commit bc49b92

Please sign in to comment.