e1000: Removing unnecessary if statement
Since mit_delay can never be 0 this if statement is superfluous. Signed-off-by: Sameeh Jubran <sameeh@daynix.com> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
9e87a691bd
commit
b92233b329
|
@ -311,11 +311,9 @@ set_interrupt_cause(E1000State *s, int index, uint32_t val)
|
|||
*/
|
||||
mit_delay = (mit_delay < 500) ? 500 : mit_delay;
|
||||
|
||||
if (mit_delay) {
|
||||
s->mit_timer_on = 1;
|
||||
timer_mod(s->mit_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
|
||||
mit_delay * 256);
|
||||
}
|
||||
s->mit_timer_on = 1;
|
||||
timer_mod(s->mit_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
|
||||
mit_delay * 256);
|
||||
s->mit_ide = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue