From: Mark Cave-Ayland Date: Thu, 28 Aug 2025 11:09:56 +0000 (+0100) Subject: hw/i386/pc_piix.c: remove pc_system_flash_cleanup_unused() from pc_init_isa() X-Git-Tag: v10.2.0-rc1~117^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b11ad71e32441baff354cdab1993847b61923570;p=thirdparty%2Fqemu.git hw/i386/pc_piix.c: remove pc_system_flash_cleanup_unused() from pc_init_isa() This function contains 'assert(PC_MACHINE_GET_CLASS(pcms)->pci_enabled)' and so we can safely assume that it should never be used for the isapc machine. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/r/20250828111057.468712-14-mark.caveayland@nutanix.com Signed-off-by: Paolo Bonzini --- diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 66dc4a5186e..fb936748bd1 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -503,7 +503,6 @@ static void pc_init_isa(MachineState *machine) assert(machine->ram_size == x86ms->below_4g_mem_size + x86ms->above_4g_mem_size); - pc_system_flash_cleanup_unused(pcms); if (machine->kernel_filename != NULL) { /* For xen HVM direct kernel boot, load linux here */ xen_load_linux(pcms);