Commit 8e854680 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()

Use standard Linux error codes.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f3b74165
...@@ -685,7 +685,7 @@ static int storvsc_probe(struct hv_device *device) ...@@ -685,7 +685,7 @@ static int storvsc_probe(struct hv_device *device)
if (ret != 0) { if (ret != 0) {
kmem_cache_destroy(host_dev->request_pool); kmem_cache_destroy(host_dev->request_pool);
scsi_host_put(host); scsi_host_put(host);
return -1; return -ENODEV;
} }
host_dev->path = device_info.path_id; host_dev->path = device_info.path_id;
...@@ -706,7 +706,7 @@ static int storvsc_probe(struct hv_device *device) ...@@ -706,7 +706,7 @@ static int storvsc_probe(struct hv_device *device)
kmem_cache_destroy(host_dev->request_pool); kmem_cache_destroy(host_dev->request_pool);
scsi_host_put(host); scsi_host_put(host);
return -1; return -ENODEV;
} }
scsi_scan_host(host); scsi_scan_host(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment