Skip to content

Commit

Permalink
lm32: remove bios_name
Browse files Browse the repository at this point in the history
Cc: Michael Walle <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Dec 10, 2020
1 parent 7d43507 commit a408b81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/lm32/milkymist.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static void
milkymist_init(MachineState *machine)
{
MachineClass *mc = MACHINE_GET_CLASS(machine);
const char *bios_name = machine->firmware ?: BIOS_FILENAME;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
Expand Down Expand Up @@ -162,9 +163,6 @@ milkymist_init(MachineState *machine)
}

/* load bios rom */
if (bios_name == NULL) {
bios_name = BIOS_FILENAME;
}
bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);

if (bios_filename) {
Expand Down

0 comments on commit a408b81

Please sign in to comment.