mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
d8d9581460
commit
469b046ead
42 changed files with 0 additions and 193 deletions
|
|
@ -453,25 +453,6 @@ static int xen_pt_register_regions(XenPCIPassthroughState *s)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void xen_pt_unregister_regions(XenPCIPassthroughState *s)
|
||||
{
|
||||
XenHostPCIDevice *d = &s->real_device;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PCI_NUM_REGIONS - 1; i++) {
|
||||
XenHostPCIIORegion *r = &d->io_regions[i];
|
||||
|
||||
if (r->base_addr == 0 || r->size == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
memory_region_destroy(&s->bar[i]);
|
||||
}
|
||||
if (d->rom.base_addr && d->rom.size) {
|
||||
memory_region_destroy(&s->rom);
|
||||
}
|
||||
}
|
||||
|
||||
/* region mapping */
|
||||
|
||||
static int xen_pt_bar_from_region(XenPCIPassthroughState *s, MemoryRegion *mr)
|
||||
|
|
@ -810,7 +791,6 @@ static void xen_pt_unregister_device(PCIDevice *d)
|
|||
/* delete all emulated config registers */
|
||||
xen_pt_config_delete(s);
|
||||
|
||||
xen_pt_unregister_regions(s);
|
||||
memory_listener_unregister(&s->memory_listener);
|
||||
memory_listener_unregister(&s->io_listener);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue