mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
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>
This commit is contained in:
parent
988e3a8546
commit
fdb4c1f399
@ -1050,9 +1050,8 @@ pscsi_execute_cmd(struct se_cmd *cmd)
|
|||||||
req = blk_get_request(pdv->pdv_sd->request_queue,
|
req = blk_get_request(pdv->pdv_sd->request_queue,
|
||||||
(data_direction == DMA_TO_DEVICE),
|
(data_direction == DMA_TO_DEVICE),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!req || IS_ERR(req)) {
|
if (!req) {
|
||||||
pr_err("PSCSI: blk_get_request() failed: %ld\n",
|
pr_err("PSCSI: blk_get_request() failed\n");
|
||||||
req ? IS_ERR(req) : -ENOMEM);
|
|
||||||
ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
|
ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user