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:
parent
3e9e98889b
commit
67f0875ebc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user