summaryrefslogtreecommitdiffstats
path: root/hw/xen/xen_pt_msi.c
diff options
context:
space:
mode:
authorPaolo Bonzini2014-06-11 12:50:43 +0200
committerPaolo Bonzini2014-08-18 12:06:21 +0200
commit469b046ead0671932ff3af8d6f95045b19b186ef (patch)
tree2ea738741930efbd091bf7fc645ce785bd1ec7a1 /hw/xen/xen_pt_msi.c
parentmemory: convert memory_region_destroy to object_unparent (diff)
downloadqemu-469b046ead0671932ff3af8d6f95045b19b186ef.tar.gz
qemu-469b046ead0671932ff3af8d6f95045b19b186ef.tar.xz
qemu-469b046ead0671932ff3af8d6f95045b19b186ef.zip
memory: remove memory_region_destroy
The function is empty after the previous patch, so remove it. Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/xen/xen_pt_msi.c')
-rw-r--r--hw/xen/xen_pt_msi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xen/xen_pt_msi.c b/hw/xen/xen_pt_msi.c
index 12b4c4560c..9ed9321c9f 100644
--- a/hw/xen/xen_pt_msi.c
+++ b/hw/xen/xen_pt_msi.c
@@ -593,7 +593,6 @@ int xen_pt_msix_init(XenPCIPassthroughState *s, uint32_t base)
return 0;
error_out:
- memory_region_destroy(&msix->mmio);
g_free(s->msix);
s->msix = NULL;
return rc;
@@ -616,7 +615,6 @@ void xen_pt_msix_delete(XenPCIPassthroughState *s)
}
memory_region_del_subregion(&s->bar[msix->bar_index], &msix->mmio);
- memory_region_destroy(&msix->mmio);
g_free(s->msix);
s->msix = NULL;