Skip to content

Commit

Permalink
scsi: myrb: Remove redundant assignment to variable timeout
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Jing Xiangfeng <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
hiss2018 authored and martinkpetersen committed Oct 8, 2020
1 parent f0f6c3a commit 5f6dcb5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/scsi/myrb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5f6dcb5

Please sign in to comment.