Patchwork [v2,2/6] vmstate: Drop unused post_save handler

login
register
mail settings
Submitter Jan Kiszka
Date May 15, 2010, 11:32 a.m.
Message ID <48457112828e609854a697170080b324b943b288.1273923157.git.jan.kiszka@web.de>
Download mbox | patch
Permalink /patch/52709/
State New
Headers show

Comments

Jan Kiszka - May 15, 2010, 11:32 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

No device makes use of it anymore.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/hw.h  |    1 -
 savevm.c |    3 ---
 2 files changed, 0 insertions(+), 4 deletions(-)

Patch

diff --git a/hw/hw.h b/hw/hw.h
index 328b704..2d39724 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -321,7 +321,6 @@  struct VMStateDescription {
     int (*pre_load)(void *opaque);
     int (*post_load)(void *opaque, int version_id);
     void (*pre_save)(void *opaque);
-    void (*post_save)(void *opaque);
     VMStateField *fields;
 };
 
diff --git a/savevm.c b/savevm.c
index 31a419c..74e553c 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1231,9 +1231,6 @@  void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd,
         }
         field++;
     }
-    if (vmsd->post_save) {
-        vmsd->post_save(opaque);
-    }
 }
 
 static int vmstate_load(QEMUFile *f, SaveStateEntry *se, int version_id)