git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
target: Make pscsi_create_virtdevice use ERR_CAST
[pandora-kernel.git]
/
drivers
/
target
/
target_core_pscsi.c
diff --git
a/drivers/target/target_core_pscsi.c
b/drivers/target/target_core_pscsi.c
index
b6d6093
..
3898fb7
100644
(file)
--- a/
drivers/target/target_core_pscsi.c
+++ b/
drivers/target/target_core_pscsi.c
@@
-566,7
+566,7
@@
static struct se_device *pscsi_create_virtdevice(
if (IS_ERR(sh)) {
pr_err("pSCSI: Unable to locate"
" pdv_host_id: %d\n", pdv->pdv_host_id);
- return
(struct se_device *) sh
;
+ return
ERR_CAST(sh)
;
}
}
} else {