diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-08-25 18:49:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-26 00:29:56 +0200 |
commit | 3b54eed7de90d59b2c6fa416513826279acc3bbd (patch) | |
tree | 547a285c659cebbeb622d5e08514b0d2b14de880 | |
parent | Staging: hv: storvsc: Cleanup error handling in storvsc_connect_to_vsp() (diff) | |
download | linux-3b54eed7de90d59b2c6fa416513826279acc3bbd.tar.xz linux-3b54eed7de90d59b2c6fa416513826279acc3bbd.zip |
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>
-rw-r--r-- | drivers/staging/hv/storvsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |