Commit 2a7869d6 authored by Jing Xiangfeng's avatar Jing Xiangfeng Committed by Martin K. Petersen

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.comAcked-by: default avatarKaran Tilak Kumar <kartilak@cisco.com>
Signed-off-by: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 712582e6
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment