Skip to content

Commit 5f6dcb5

Browse files
hiss2018martinkpetersen
authored andcommitted
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. Remove it. Link: https://lore.kernel.org/r/20200929022458.40652-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f0f6c3a commit 5f6dcb5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/myrb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2732,7 +2732,6 @@ static int DAC960_LA_hw_init(struct pci_dev *pdev,
27322732
DAC960_LA_disable_intr(base);
27332733
DAC960_LA_ack_hw_mbox_status(base);
27342734
udelay(1000);
2735-
timeout = 0;
27362735
while (DAC960_LA_init_in_progress(base) &&
27372736
timeout < MYRB_MAILBOX_TIMEOUT) {
27382737
if (DAC960_LA_read_error_status(base, &error,

0 commit comments

Comments
 (0)