From 67f0875ebc3197fc28a52fb71092f8ec519471ff Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 10 Sep 2009 03:04:44 +0200 Subject: hpet: it is imposible that qemu_timer field is NULL at this point Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/hpet.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw/hpet.c') diff --git a/hw/hpet.c b/hw/hpet.c index 20df7ef5e8..98a769e70f 100644 --- a/hw/hpet.c +++ b/hw/hpet.c @@ -174,9 +174,7 @@ static void hpet_save(QEMUFile *f, void *opaque) qemu_put_be64s(f, &s->timer[i].fsb); qemu_put_be64s(f, &s->timer[i].period); qemu_put_8s(f, &s->timer[i].wrap_flag); - if (s->timer[i].qemu_timer) { - qemu_put_timer(f, s->timer[i].qemu_timer); - } + qemu_put_timer(f, s->timer[i].qemu_timer); } } @@ -201,9 +199,7 @@ static int hpet_load(QEMUFile *f, void *opaque, int version_id) qemu_get_be64s(f, &s->timer[i].fsb); qemu_get_be64s(f, &s->timer[i].period); qemu_get_8s(f, &s->timer[i].wrap_flag); - if (s->timer[i].qemu_timer) { - qemu_get_timer(f, s->timer[i].qemu_timer); - } + qemu_get_timer(f, s->timer[i].qemu_timer); } return 0; } -- cgit v1.2.3