From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:05 +0000 (-0700) Subject: Staging: hv: storvsc: Cleanup error handling in storvsc_do_io() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~52 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b54eed7de90d59b2c6fa416513826279acc3bbd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: storvsc: Cleanup error handling in storvsc_do_io() Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index 2b73f726bbb7..2b914e41f522 100644 --- a/drivers/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -454,7 +454,7 @@ int storvsc_do_io(struct hv_device *device, stor_device = get_stor_device(device); if (!stor_device) - return -2; + return -ENODEV; request->device = device;