summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-21 11:15:19 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-07-27 00:06:42 -0400
commit8f13142ac2eb04642e1c451b4475743d77e9c86c (patch)
treee8606bcc4f4886555a270e719f9c773f8b7866eb /drivers/target/iscsi
parentff2d86d04d2614e33e122eb9a43ae9fd2a7274af (diff)
downloadlinux-stable-8f13142ac2eb04642e1c451b4475743d77e9c86c.tar.gz
linux-stable-8f13142ac2eb04642e1c451b4475743d77e9c86c.tar.bz2
linux-stable-8f13142ac2eb04642e1c451b4475743d77e9c86c.zip
scsi: target: Remove redundant assignment to variable ret
The variable ret is being initialized with a value that is never read, the assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20210721101519.42299-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Unused value")
Diffstat (limited to 'drivers/target/iscsi')
-rw-r--r--drivers/target/iscsi/cxgbit/cxgbit_ddp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_ddp.c b/drivers/target/iscsi/cxgbit/cxgbit_ddp.c
index b044999ad002..072afd070f3e 100644
--- a/drivers/target/iscsi/cxgbit/cxgbit_ddp.c
+++ b/drivers/target/iscsi/cxgbit/cxgbit_ddp.c
@@ -234,7 +234,7 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
struct cxgbit_device *cdev = csk->com.cdev;
struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd);
struct cxgbi_task_tag_info *ttinfo = &ccmd->ttinfo;
- int ret = -EINVAL;
+ int ret;
if ((!ccmd->setup_ddp) ||
(!test_bit(CSK_DDP_ENABLE, &csk->com.flags)))