mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-09 11:00:52 +00:00
Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe()
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
b06efc199f
commit
51a805d0ce
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user