Staging: hv: netvsc: Cleanup the returned error code in netvsc_probe()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:49:11 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:32:10 +0000 (15:32 -0700)
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>
drivers/staging/hv/netvsc_drv.c

index 0b8ac1abe1a75511c69ae67bc17c9857c96cf6e3..90a3198c9978b5be3b08c6cd793988f5d6dcb2d5 100644 (file)
@@ -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);