projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ef397
)
Staging: hv: netvsc: Cleanup error returns in rndis_filter_init_device()
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 25 Aug 2011 16:49:20 +0000
(09:49 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 25 Aug 2011 22:32:12 +0000
(15:32 -0700)
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>
drivers/staging/hv/rndis_filter.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/rndis_filter.c
b/drivers/staging/hv/rndis_filter.c
index f5f3052e32bf264878ae601e3b39467c1e75eeab..a71f29d5ca0493a0de7e5243720b2e2fd528adfb 100644
(file)
--- a/
drivers/staging/hv/rndis_filter.c
+++ b/
drivers/staging/hv/rndis_filter.c
@@
-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: