mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f3b741658c
commit
8e854680b5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user