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,10 +174,8 @@ static void hpet_save(QEMUFile *f, void *opaque)
|
||||||
qemu_put_be64s(f, &s->timer[i].fsb);
|
qemu_put_be64s(f, &s->timer[i].fsb);
|
||||||
qemu_put_be64s(f, &s->timer[i].period);
|
qemu_put_be64s(f, &s->timer[i].period);
|
||||||
qemu_put_8s(f, &s->timer[i].wrap_flag);
|
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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hpet_load(QEMUFile *f, void *opaque, int version_id)
|
static int hpet_load(QEMUFile *f, void *opaque, int version_id)
|
||||||
|
@ -201,10 +199,8 @@ 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].fsb);
|
||||||
qemu_get_be64s(f, &s->timer[i].period);
|
qemu_get_be64s(f, &s->timer[i].period);
|
||||||
qemu_get_8s(f, &s->timer[i].wrap_flag);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue