Staging: hv: storvsc: Cleanup error handling in storvsc_do_io()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:49:05 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:29:56 +0000 (15:29 -0700)
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>
drivers/staging/hv/storvsc.c

index 2b73f726bbb7013e7805a355c4d820a9bb7fe294..2b914e41f522562cec8ccc2918f5170a7c7c0a07 100644 (file)
@@ -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;