projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f6c3a
)
scsi: myrb: Remove redundant assignment to variable timeout
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Tue, 29 Sep 2020 02:24:58 +0000
(10:24 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 8 Oct 2020 03:50:04 +0000
(23:50 -0400)
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>
drivers/scsi/myrb.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/myrb.c
b/drivers/scsi/myrb.c
index
b8020ea
..
31c8cbb
100644
(file)
--- 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,