[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211110121631.151422-1-deng.changcheng@zte.com.cn>
Date: Wed, 10 Nov 2021 12:16:31 +0000
From: cgel.zte@...il.com
To: brking@...ibm.com
Cc: jejb@...ux.ibm.com, martin.petersen@...cle.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Changcheng Deng <deng.changcheng@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] scsi: ipr: remove unneeded variable
From: Changcheng Deng <deng.changcheng@....com.cn>
Fix the following coccicheck review:
./drivers/scsi/ipr.c: 9512: 5-7: Unneeded variable
Remove unneeded variable used to store return value.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@....com.cn>
---
drivers/scsi/ipr.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 104bee9b3a9d..013a43b6a12a 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -9509,7 +9509,6 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev,
**/
static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg)
{
- int rc = 0;
unsigned long host_lock_flags = 0;
ENTER;
@@ -9525,7 +9524,7 @@ static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg)
spin_unlock_irqrestore(ioa_cfg->host->host_lock, host_lock_flags);
LEAVE;
- return rc;
+ return 0;
}
/**
--
2.25.1
Powered by blists - more mailing lists