]> git.proxmox.com Git - qemu.git/commitdiff
vmstate: Unfold VMSTATE_INT32_VARRAY() only use and remove it
authorJuan Quintela <quintela@redhat.com>
Fri, 16 Oct 2009 11:29:48 +0000 (13:29 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:28:51 +0000 (12:28 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hw.h
hw/pci.c

diff --git a/hw/hw.h b/hw/hw.h
index 2a9d0bd421a7bf7f3be68e0a4388b69d1f07d765..531031dc1fd6eee928544bc8f890bf5e6851bdc6 100644 (file)
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -600,12 +600,6 @@ extern const VMStateDescription vmstate_i2c_slave;
 #define VMSTATE_INT32_ARRAY(_f, _s, _n)                               \
     VMSTATE_INT32_ARRAY_V(_f, _s, _n, 0)
 
-#define VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, _v)                      \
-    VMSTATE_VARRAY_INT32(_f, _s, _f_n, _v, vmstate_info_int32, int32_t)
-
-#define VMSTATE_INT32_VARRAY(_f, _s, _f_n)                            \
-    VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, 0)
-
 #define VMSTATE_BUFFER_V(_f, _s, _v)                                  \
     VMSTATE_STATIC_BUFFER(_f, _s, _v, NULL, 0, sizeof(typeof_field(_s, _f)))
 
index 553febbdea766473d4bbb917714a06d4206a5291..ef134f7e5c506074256ac82df2b685f34af3ed55 100644 (file)
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -79,7 +79,7 @@ static const VMStateDescription vmstate_pcibus = {
     .minimum_version_id_old = 1,
     .fields      = (VMStateField []) {
         VMSTATE_INT32_EQUAL(nirq, PCIBus),
-        VMSTATE_INT32_VARRAY(irq_count, PCIBus, nirq),
+        VMSTATE_VARRAY_INT32(irq_count, PCIBus, nirq, 0, vmstate_info_int32, int32_t),
         VMSTATE_END_OF_LIST()
     }
 };