summaryrefslogtreecommitdiff
path: root/drivers/scsi/myrb.c
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-29 10:24:58 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-07 23:50:04 -0400
commit5f6dcb55a7fa347a0c72fc5afb860e4012628902 (patch)
tree0065bf5b91f79e16de18317d588c1edcabb9353d /drivers/scsi/myrb.c
parentf0f6c3a4fcb80fcbcce4ff6739996dd98c228afd (diff)
downloadlwn-5f6dcb55a7fa347a0c72fc5afb860e4012628902.tar.gz
lwn-5f6dcb55a7fa347a0c72fc5afb860e4012628902.zip
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>
Diffstat (limited to 'drivers/scsi/myrb.c')
-rw-r--r--drivers/scsi/myrb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c
index b8020eaa6320..31c8cbbba45c 100644
--- a/drivers/scsi/myrb.c
+++ b/drivers/scsi/myrb.c
@@ -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,