From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:11 +0000 (-0700) Subject: Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51a805d0ce0f78810fd90d4e9eafd8a0ab4bdb58;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe() Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index 0b8ac1abe1a7..90a3198c9978 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);