hpet: it is imposible that qemu_timer field is NULL at this point

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-09-10 03:04:44 +02:00 committed by Anthony Liguori
parent 3e9e98889b
commit 67f0875ebc

View File

@ -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;
}