diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-09-29 05:24:58 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-08 06:50:04 +0300 |
commit | 5f6dcb55a7fa347a0c72fc5afb860e4012628902 (patch) | |
tree | 0065bf5b91f79e16de18317d588c1edcabb9353d /drivers/scsi/myrb.c | |
parent | f0f6c3a4fcb80fcbcce4ff6739996dd98c228afd (diff) | |
download | linux-5f6dcb55a7fa347a0c72fc5afb860e4012628902.tar.xz |
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.c | 1 |
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, |