diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-14 11:05:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-14 12:25:14 +0200 |
commit | 58268c8d3d051f7fe329dcd42a9284cb4e3b3e31 (patch) | |
tree | e8725fc11bd16111a4d427cdd1ee92c048d11d1e | |
parent | 883e4f7624e10b98d16d9adaffb8b1795664d899 (diff) |
memory: remove memory_region_destructor_rom_device
It is equivalent to memory_region_destructor_ram, use that one.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | memory.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -944,11 +944,6 @@ static void memory_region_destructor_ram(MemoryRegion *mr) qemu_ram_free(mr->ram_block); } -static void memory_region_destructor_rom_device(MemoryRegion *mr) -{ - qemu_ram_free(mr->ram_block); -} - static bool memory_region_need_escape(char c) { return c == '/' || c == '[' || c == '\\' || c == ']'; @@ -1405,7 +1400,7 @@ void memory_region_init_rom_device(MemoryRegion *mr, mr->opaque = opaque; mr->terminates = true; mr->rom_device = true; - mr->destructor = memory_region_destructor_rom_device; + mr->destructor = memory_region_destructor_ram; mr->ram_block = qemu_ram_alloc(size, mr, errp); } |