]> xenbits.xensource.com Git - qemu-xen.git/commit
vmstate: reduce code duplication
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Apr 2014 16:50:26 +0000 (19:50 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jul 2014 03:05:52 +0000 (22:05 -0500)
commit6067df7a5df3601985e464d3cf1d560b374daa9f
tree6f20676f73667577bb5f805589d3450b2cb644ec
parent9ee8ab5503fa6a422a5a11aa019d2dce6938e101
vmstate: reduce code duplication

move size offset and number of elements math out
to functions, to reduce code duplication.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit 35fc1f71899fd42323bd8f33da18f0211e0d2727)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
vmstate.c