Commit 51a805d0 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe()

Use standard Linux error codes.
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 b06efc19
...@@ -338,7 +338,7 @@ static int netvsc_probe(struct hv_device *dev) ...@@ -338,7 +338,7 @@ static int netvsc_probe(struct hv_device *dev)
net = alloc_etherdev(sizeof(struct net_device_context)); net = alloc_etherdev(sizeof(struct net_device_context));
if (!net) if (!net)
return -1; return -ENOMEM;
/* Set initial state */ /* Set initial state */
netif_carrier_off(net); netif_carrier_off(net);
......
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