Received: from eggs.gnu.org ([208.118.235.92]:43759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR5A9-0004Zo-MN for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR5A4-00054v-0Q for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:54:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR5A3-00054g-NP for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:54:35 -0400 From: Eduardo Habkost Date: Wed, 24 Oct 2012 15:49:41 -0200 Message-Id: <1351101001-14589-8-git-send-email-ehabkost@redhat.com> In-Reply-To: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> References: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 07/27] pc: pc_init1(): always use rom_memory on pc_memory_init() call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paolo Bonzini When pci_enabled is false, rom_memory is already pointing to system_memory, so there's no need to check pci_enabled again when calling pc_memory_init(). Signed-off-by: Eduardo Habkost --- hw/pc_piix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 47ebc1a..3c4ce8f 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -177,7 +177,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)); -- 1.7.11.7