Skip to content

Commit

Permalink
Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent b06efc1 commit 51a805d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 51a805d

Please sign in to comment.