From 5553e3a5c95f4a842489384a2fafb27d7555a4ef Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 3 May 2013 17:18:36 +0200 Subject: memory: do not duplicate memory_region_destructor_none Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- memory.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'memory.c') diff --git a/memory.c b/memory.c index 013464b..5431463 100644 --- a/memory.c +++ b/memory.c @@ -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; } -- cgit v1.1