diff mbox

[054/124] vmstate: Port last user of VMSTATE_SINGLE to VMSTATE_SINGLE_TEST

Message ID 1398091304-10677-55-git-send-email-quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela April 21, 2014, 2:40 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/timer/twl92230.c         | 2 +-
 include/migration/vmstate.h | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
diff mbox

Patch

diff --git a/hw/timer/twl92230.c b/hw/timer/twl92230.c
index 7ded4ba..3aacaeb 100644
--- a/hw/timer/twl92230.c
+++ b/hw/timer/twl92230.c
@@ -765,7 +765,7 @@  static const VMStateInfo vmstate_hack_int32_as_uint16 = {
 };

 #define VMSTATE_UINT16_HACK(_f, _s)                                  \
-    VMSTATE_SINGLE(_f, _s, 0, vmstate_hack_int32_as_uint16, int32_t)
+    VMSTATE_SINGLE_TEST(_f, _s, NULL, 0, vmstate_hack_int32_as_uint16, int32_t)


 static const VMStateDescription vmstate_menelaus_tm = {
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 60b67dc..e223758 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -489,9 +489,6 @@  extern const VMStateInfo vmstate_info_bitmap;
    _v : version
 */

-#define VMSTATE_SINGLE(_field, _state, _version, _info, _type)        \
-    VMSTATE_SINGLE_TEST(_field, _state, NULL, _version, _info, _type)
-
 #define VMSTATE_STRUCT(_field, _state, _version, _vmsd, _type)        \
     VMSTATE_STRUCT_TEST(_field, _state, NULL, _version, _vmsd, _type)