projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3b7416
)
Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()
author
K. Y. Srinivasan
<kys@microsoft.com>
Thu, 25 Aug 2011 16:49:09 +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
|
history
diff --git
a/drivers/staging/hv/storvsc_drv.c
b/drivers/staging/hv/storvsc_drv.c
index 0eb8c71b787a47b51d7d3d2165beb91e03abffab..69a312f0b3697e84a203af02d9f4fcd4d6958017 100644
(file)
--- a/
drivers/staging/hv/storvsc_drv.c
+++ b/
drivers/staging/hv/storvsc_drv.c
@@
-685,7
+685,7
@@
static int storvsc_probe(struct hv_device *device)
if (ret != 0) {
kmem_cache_destroy(host_dev->request_pool);
scsi_host_put(host);
- return -
1
;
+ return -
ENODEV
;
}
host_dev->path = device_info.path_id;
@@
-706,7
+706,7
@@
static int storvsc_probe(struct hv_device *device)
kmem_cache_destroy(host_dev->request_pool);
scsi_host_put(host);
- return -
1
;
+ return -
ENODEV
;
}
scsi_scan_host(host);