projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06efc1
)
Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe()
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 25 Aug 2011 16:49:11 +0000
(09:49 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 25 Aug 2011 22:32:10 +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/netvsc_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/netvsc_drv.c
b/drivers/staging/hv/netvsc_drv.c
index 0b8ac1abe1a75511c69ae67bc17c9857c96cf6e3..90a3198c9978b5be3b08c6cd793988f5d6dcb2d5 100644
(file)
--- a/
drivers/staging/hv/netvsc_drv.c
+++ b/
drivers/staging/hv/netvsc_drv.c
@@
-338,7
+338,7
@@
static int netvsc_probe(struct hv_device *dev)
net = alloc_etherdev(sizeof(struct net_device_context));
if (!net)
- return -
1
;
+ return -
ENOMEM
;
/* Set initial state */
netif_carrier_off(net);