Skip to contentSkip to conversation

scsi: myrb: remove redundant assignment to variable timeout

PATCH Applied Jing Xiangfeng 2 participants 3 messages Sep 29, 2020 – Oct 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: myrb: remove redundant assignment to variable timeout

The variable timeout has been initialized with a value '0'. The assignment before while loop is redundant. So remove it.

---
 drivers/scsi/myrb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/myrb.c +0 -1
index b2869c5dd7fb..687a808969ac 100644
@@ -2732,7 +2732,6 @@ static int DAC960_LA_hw_init(struct pci_dev *pdev,
 	DAC960_LA_disable_intr(base);
 	DAC960_LA_ack_hw_mbox_status(base);
 	udelay(1000);
-	timeout = 0;
 	while (DAC960_LA_init_in_progress(base) &&
 	       timeout < MYRB_MAILBOX_TIMEOUT) {
 		if (DAC960_LA_read_error_status(base, &error,
Signature · 1 line
2.17.1
#1 lore raw

Jing,

Quoted 2 lines

The variable timeout has been initialized with a value '0'. The assignment before while loop is redundant. So remove it.

Applied to 5.10/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering