diff mbox

[114/124] vmstate: Remove unused VMSTATE_STRUCT_POINTER_TEST

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

Commit Message

Juan Quintela April 21, 2014, 2:41 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 include/migration/vmstate.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox

Patch

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 3fd13e7..e8a7949 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -332,9 +332,8 @@  extern const VMStateInfo vmstate_info_bitmap;
     .offset       = vmstate_offset_value(_state, _field, _type),     \
 }

-#define VMSTATE_STRUCT_POINTER_TEST(_field, _state, _test, _vmsd, _type) { \
+#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type) { \
     .name         = (stringify(_field)),                             \
-    .field_exists = (_test),                                         \
     .vmsd         = &(_vmsd),                                        \
     .size         = sizeof(_type *),                                 \
     .flags        = VMS_STRUCT|VMS_POINTER,                          \
@@ -494,9 +493,6 @@  extern const VMStateInfo vmstate_info_bitmap;
 #define VMSTATE_STRUCT(_field, _state, _vmsd, _type)        \
     VMSTATE_STRUCT_TEST(_field, _state, NULL, _vmsd, _type)

-#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type)          \
-    VMSTATE_STRUCT_POINTER_TEST(_field, _state, NULL, _vmsd, _type)
-
 #define VMSTATE_STRUCT_ARRAY(_field, _state, _num, _vmsd, _type) \
     VMSTATE_STRUCT_ARRAY_TEST(_field, _state, _num, NULL, _vmsd, _type)