From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:10 +0000 (-0700) Subject: Staging: hv: storvsc: Cleanup returned error code in storvsc_drv_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b06efc199f9b8cc49e47d441f837a2dbe4971e4e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: hv: storvsc: Cleanup returned error code in storvsc_drv_init() 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/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 69a312f0b369..faa8d5760876 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -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); }