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:
d225d36
)
Staging: hv: storvsc: Cleanup error handling in storvsc_channel_init()
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 25 Aug 2011 16:49:03 +0000
(09:49 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 25 Aug 2011 22:29:55 +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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/storvsc.c
b/drivers/staging/hv/storvsc.c
index 915aeeed11a167e3473e01e2523f245963be85e3..22ac6f21e2610df98933f44fed7027cb068b6fbc 100644
(file)
--- a/
drivers/staging/hv/storvsc.c
+++ b/
drivers/staging/hv/storvsc.c
@@
-111,7
+111,7
@@
static int storvsc_channel_init(struct hv_device *device)
stor_device = get_stor_device(device);
if (!stor_device)
- return -
1
;
+ return -
ENODEV
;
request = &stor_device->init_request;
vstor_packet = &request->vstor_packet;