summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorSameeh Jubran <sameeh@daynix.com>2016-05-29 09:37:25 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2016-06-07 18:19:23 +0300
commitb92233b32905aed746ad1ddd76332b4a76347edf (patch)
treebe1a2c47479b1c36714706c651b60420a4e2041c /hw
parent9e87a691bd46846e2232f8c30605c491c85ac987 (diff)
downloadqemu-b92233b32905aed746ad1ddd76332b4a76347edf.zip
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/e1000.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
index 36e3dbe347..1202371271 100644
--- a/hw/net/e1000.c
+++ b/hw/net/e1000.c
@@ -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;
}
}