aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJing Xiangfeng2020-09-25 14:07:54 +0800
committerMartin K. Petersen2020-10-02 21:14:27 -0400
commit2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac (patch)
tree0f10c702a838923738e4ebbe87966244a44ad284
parent712582e60f288e7cede8d6fc8769529317e0f3e0 (diff)
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>
-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) {