summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-08-25 16:49:11 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-25 22:32:10 (GMT)
commit51a805d0ce0f78810fd90d4e9eafd8a0ab4bdb58 (patch)
tree934c4f21657c690cc6081184f428fdb8ec596276 /drivers
parentb06efc199f9b8cc49e47d441f837a2dbe4971e4e (diff)
downloadlinux-fsl-qoriq-51a805d0ce0f78810fd90d4e9eafd8a0ab4bdb58.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/hv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 0b8ac1a..90a3198 100644
--- 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);