diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-08-25 16:49:09 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-25 22:29:57 (GMT) |
commit | 8e854680b57440a8bbfdaae05534b010060f7966 (patch) | |
tree | 182904a4c0fc5632e6e417ba98173adc210c5919 | |
parent | f3b741658c983a2a7abc5d22a5dc60b503f6cbc3 (diff) | |
download | linux-8e854680b57440a8bbfdaae05534b010060f7966.tar.xz |
Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()
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>
-rw-r--r-- | drivers/staging/hv/storvsc_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 0eb8c71..69a312f 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); |