提交 8e854680 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

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

Use standard Linux error codes.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册