summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-15 08:55:41 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-09 14:29:23 -0700
commitfdb4c1f399f7632c326b6f5f4283dbd7a3934dbb (patch)
tree49a4604a345e0be1a301a1bd0bf3c742d60c142b /drivers/target
parent988e3a85463d9b6dabc681df3f8f131b23c19953 (diff)
downloadop-kernel-dev-fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb.zip
op-kernel-dev-fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb.tar.gz
target/pscsi: remove an unneeded check
blk_get_request() just returns NULL on error, it doesn't return an ERR_PTR. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_pscsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index e992b27..9170b36 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -1050,9 +1050,8 @@ pscsi_execute_cmd(struct se_cmd *cmd)
req = blk_get_request(pdv->pdv_sd->request_queue,
(data_direction == DMA_TO_DEVICE),
GFP_KERNEL);
- if (!req || IS_ERR(req)) {
- pr_err("PSCSI: blk_get_request() failed: %ld\n",
- req ? IS_ERR(req) : -ENOMEM);
+ if (!req) {
+ pr_err("PSCSI: blk_get_request() failed\n");
ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
goto fail;
}
OpenPOWER on IntegriCloud