diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-15 08:55:41 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-09 14:29:23 -0700 |
commit | fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb (patch) | |
tree | 49a4604a345e0be1a301a1bd0bf3c742d60c142b | |
parent | 988e3a85463d9b6dabc681df3f8f131b23c19953 (diff) | |
download | linux-fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb.tar.gz linux-fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb.tar.bz2 linux-fdb4c1f399f7632c326b6f5f4283dbd7a3934dbb.zip |
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>
-rw-r--r-- | drivers/target/target_core_pscsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index e992b27aa090..9170b3660318 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; } |