diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-04-03 19:50:26 +0300 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2014-06-26 13:48:59 -0500 |
commit | 25062a7521bd8499277e8453517112853faac57c (patch) | |
tree | e644226fed35ce55ec6a55206977ab1ea65ade54 /hw/net/virtio-net.c | |
parent | f93614c93633caf4181e9f8281ae6be4f2f543c8 (diff) |
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)
Conflicts:
vmstate.c
*removed dependency on b6fcfa59 (Move VMState code to vmstate.c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions