diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-09-25 08:07:54 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-03 03:14:27 +0200 |
commit | 2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac (patch) | |
tree | 0f10c702a838923738e4ebbe87966244a44ad284 /drivers/scsi/snic | |
parent | scsi: fnic: Do not call 'scsi_done()' for unhandled commands (diff) | |
download | linux-2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac.tar.xz linux-2a7869d6c9a1f7c95bcb52a1e960bf95c5d464ac.zip |
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.c | 4 |
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) { |