diff options
author | Juan Quintela | 2014-04-16 16:01:33 +0200 |
---|---|---|
committer | Juan Quintela | 2014-05-14 15:24:51 +0200 |
commit | 35d08458a9ee5fb9c8518207cc85d0a4f2ef3165 (patch) | |
tree | 9120b9be3a47709bf776533258aa3c3dad389263 /hw/core | |
parent | savevm: Remove all the unneeded version_minimum_id_old (usb) (diff) | |
download | qemu-35d08458a9ee5fb9c8518207cc85d0a4f2ef3165.tar.gz qemu-35d08458a9ee5fb9c8518207cc85d0a4f2ef3165.tar.xz qemu-35d08458a9ee5fb9c8518207cc85d0a4f2ef3165.zip |
savevm: Remove all the unneeded version_minimum_id_old (rest)
After previous Peter patch, they are redundant. This way we don't
assign them except when needed. Once there, there were lots of case
where the ".fields" indentation was wrong:
.fields = (VMStateField []) {
and
.fields = (VMStateField []) {
Change all the combinations to:
.fields = (VMStateField[]){
The biggest problem (appart from aesthetics) was that checkpatch complained
when we copy&pasted the code from one place to another.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/ptimer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c index 3036bde1f3..466e543b3d 100644 --- a/hw/core/ptimer.c +++ b/hw/core/ptimer.c @@ -206,8 +206,7 @@ const VMStateDescription vmstate_ptimer = { .name = "ptimer", .version_id = 1, .minimum_version_id = 1, - .minimum_version_id_old = 1, - .fields = (VMStateField[]) { + .fields = (VMStateField[]) { VMSTATE_UINT8(enabled, ptimer_state), VMSTATE_UINT64(limit, ptimer_state), VMSTATE_UINT64(delta, ptimer_state), |