[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231019083026.1525366-1-suhui@nfschina.com>
Date: Thu, 19 Oct 2023 16:30:27 +0800
From: Su Hui <suhui@...china.com>
To: kartilak@...co.com, sebaddel@...co.com, jejb@...ux.ibm.com,
martin.petersen@...cle.com
Cc: Su Hui <suhui@...china.com>, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH] scsi: snici: Remove dead code in snic_dr_clean_pending_req
Value stored to 'ret' is never read, remove it to save space.
Signed-off-by: Su Hui <suhui@...china.com>
---
drivers/scsi/snic/snic_scsi.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/scsi/snic/snic_scsi.c b/drivers/scsi/snic/snic_scsi.c
index c50ede326cc4..badd0d5640bc 100644
--- a/drivers/scsi/snic/snic_scsi.c
+++ b/drivers/scsi/snic/snic_scsi.c
@@ -1867,11 +1867,8 @@ snic_dr_clean_pending_req(struct snic *snic, struct scsi_cmnd *lr_sc)
schedule_timeout(msecs_to_jiffies(100));
/* Walk through all the cmds and check abts status. */
- if (snic_is_abts_pending(snic, lr_sc)) {
- ret = FAILED;
-
+ if (snic_is_abts_pending(snic, lr_sc))
goto clean_err;
- }
ret = 0;
SNIC_SCSI_DBG(snic->shost, "clean_pending_req: Success.\n");
--
2.30.2
Powered by blists - more mailing lists