qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 114/124] vmstate: Remove unused VMSTATE_STRUCT_POINT


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 114/124] vmstate: Remove unused VMSTATE_STRUCT_POINTER_TEST
Date: Mon, 21 Apr 2014 16:41:34 +0200

Signed-off-by: Juan Quintela <address@hidden>
---
 include/migration/vmstate.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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)

-- 
1.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]