projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1920da8
)
Staging: hv: storvsc: Cleanup returned error code in storvsc_host_reset()
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 25 Aug 2011 16:49:08 +0000
(09:49 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 25 Aug 2011 22:29:57 +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_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/storvsc_drv.c
b/drivers/staging/hv/storvsc_drv.c
index 29ac6440688087c92b94810ebc49936472c2b78c..0eb8c71b787a47b51d7d3d2165beb91e03abffab 100644
(file)
--- a/
drivers/staging/hv/storvsc_drv.c
+++ b/
drivers/staging/hv/storvsc_drv.c
@@
-346,7
+346,7
@@
static int storvsc_host_reset(struct hv_device *device)
stor_device = get_stor_device(device);
if (!stor_device)
- return -
1
;
+ return -
ENODEV
;
request = &stor_device->reset_request;
vstor_packet = &request->vstor_packet;