From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:09 +0000 (-0700) Subject: Staging: hv: storvsc: Cleanup error code returned in storvsc_probe() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e854680b57440a8bbfdaae05534b010060f7966;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: storvsc: Cleanup error code returned in storvsc_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/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 0eb8c71b787a..69a312f0b369 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -685,7 +685,7 @@ static int storvsc_probe(struct hv_device *device) if (ret != 0) { kmem_cache_destroy(host_dev->request_pool); scsi_host_put(host); - return -1; + return -ENODEV; } host_dev->path = device_info.path_id; @@ -706,7 +706,7 @@ static int storvsc_probe(struct hv_device *device) kmem_cache_destroy(host_dev->request_pool); scsi_host_put(host); - return -1; + return -ENODEV; } scsi_scan_host(host);