Staging: hv: storvsc: Cleanup returned error code in storvsc_drv_init()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:49:10 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:31:33 +0000 (15:31 -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/storvsc_drv.c

index 69a312f0b3697e84a203af02d9f4fcd4d6958017..faa8d57608767cc85cf8bab73e136cf50c117bcf 100644 (file)
@@ -740,7 +740,7 @@ static int __init storvsc_drv_init(void)
 
        if (max_outstanding_req_per_channel <
            STORVSC_MAX_IO_REQUESTS)
-               return -1;
+               return -EINVAL;
 
        return vmbus_driver_register(&storvsc_drv);
 }