]> git.proxmox.com Git - mirror_qemu.git/commitdiff
pc: Drop redundant test for ROM memory region
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 1 Nov 2012 16:29:24 +0000 (17:29 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Nov 2012 18:50:57 +0000 (19:50 +0100)
Just a few lines above, we already initialize rom_memory accordingly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/pc_piix.c

index 85529b2cea1f658e3367a0dcb9cfc5d4b044180a..cfa839c8b4fef977a5877b003e7cfc8ce5504863 100644 (file)
@@ -178,7 +178,7 @@ static void pc_init1(MemoryRegion *system_memory,
         fw_cfg = pc_memory_init(system_memory,
                        kernel_filename, kernel_cmdline, initrd_filename,
                        below_4g_mem_size, above_4g_mem_size,
-                       pci_enabled ? rom_memory : system_memory, &ram_memory);
+                       rom_memory, &ram_memory);
     }
 
     gsi_state = g_malloc0(sizeof(*gsi_state));