summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-25 09:07:54 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-03 04:14:27 +0300
commit2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac (patch)
tree0f10c702a838923738e4ebbe87966244a44ad284 /drivers/scsi/snic
parent712582e60f288e7cede8d6fc8769529317e0f3e0 (diff)
downloadlinux-2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac.tar.xz
scsi: snic: Remove unnecessary condition
ret is always zero or error so the assignment is redundant. Link: https://lore.kernel.org/r/20200925060754.156599-1-jingxiangfeng@huawei.com Acked-by: Karan Tilak Kumar <kartilak@cisco.com> Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic')
-rw-r--r--drivers/scsi/snic/snic_scsi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/snic/snic_scsi.c b/drivers/scsi/snic/snic_scsi.c
index a8a48b106062..6dd0ff188bb4 100644
--- a/drivers/scsi/snic/snic_scsi.c
+++ b/drivers/scsi/snic/snic_scsi.c
@@ -1387,10 +1387,6 @@ snic_issue_tm_req(struct snic *snic,
}
ret = snic_queue_itmf_req(snic, tmreq, sc, tmf, req_id);
- if (ret)
- goto tmreq_err;
-
- ret = 0;
tmreq_err:
if (ret) {