diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-03 17:18:36 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 18:42:48 +0200 |
commit | 5553e3a5c95f4a842489384a2fafb27d7555a4ef (patch) | |
tree | bd4ab266c9394618b387ccfccd313979220074e9 | |
parent | 5f9a5ea1c0a8391033e7d33abd335dd804a1001a (diff) | |
download | qemu-5553e3a5c95f4a842489384a2fafb27d7555a4ef.zip qemu-5553e3a5c95f4a842489384a2fafb27d7555a4ef.tar.gz qemu-5553e3a5c95f4a842489384a2fafb27d7555a4ef.tar.bz2 |
memory: do not duplicate memory_region_destructor_none
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | memory.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -768,10 +768,6 @@ static void memory_region_destructor_ram_from_ptr(MemoryRegion *mr) qemu_ram_free_from_ptr(mr->ram_addr); } -static void memory_region_destructor_iomem(MemoryRegion *mr) -{ -} - static void memory_region_destructor_rom_device(MemoryRegion *mr) { qemu_ram_free(mr->ram_addr & TARGET_PAGE_MASK); @@ -929,7 +925,6 @@ void memory_region_init_io(MemoryRegion *mr, mr->ops = ops; mr->opaque = opaque; mr->terminates = true; - mr->destructor = memory_region_destructor_iomem; mr->ram_addr = ~(ram_addr_t)0; } |