Staging: hv: storvsc: Cleanup error handling in storvsc_do_io()
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
cae50a27a0
commit
3b54eed7de
@@ -454,7 +454,7 @@ int storvsc_do_io(struct hv_device *device,
|
|||||||
stor_device = get_stor_device(device);
|
stor_device = get_stor_device(device);
|
||||||
|
|
||||||
if (!stor_device)
|
if (!stor_device)
|
||||||
return -2;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
||||||
request->device = device;
|
request->device = device;
|
||||||
|
Reference in New Issue
Block a user