mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Staging: hv: netvsc: Cleanup error returns in rndis_filter_init_device()
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>
This commit is contained in:
parent
58ef3977ce
commit
bc49b92671
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue