diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-12-21 14:35:50 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-01-20 07:25:01 +0100 |
commit | 1881f336a33a8a99cb17ab1c57ed953682e8e107 (patch) | |
tree | 06b6a1bef165f20d8ce8caae8e0cbbc16aecbbf1 /hw/sparc64 | |
parent | e2c1c34f139f49ef909bb4322607fb8b39002312 (diff) | |
download | qemu-1881f336a33a8a99cb17ab1c57ed953682e8e107.zip qemu-1881f336a33a8a99cb17ab1c57ed953682e8e107.tar.gz qemu-1881f336a33a8a99cb17ab1c57ed953682e8e107.tar.bz2 |
hw/sparc64/niagara: Use blk_name() instead of open-coding it
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221221133551.3967339-3-armbru@redhat.com>
Diffstat (limited to 'hw/sparc64')
-rw-r--r-- | hw/sparc64/niagara.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/sparc64/niagara.c b/hw/sparc64/niagara.c index ab3c4ec..6725cc6 100644 --- a/hw/sparc64/niagara.c +++ b/hw/sparc64/niagara.c @@ -23,7 +23,6 @@ */ #include "qemu/osdep.h" -#include "block/block_int-common.h" #include "qemu/units.h" #include "cpu.h" #include "hw/boards.h" @@ -144,10 +143,9 @@ static void niagara_init(MachineState *machine) memory_region_add_subregion(get_system_memory(), NIAGARA_VDISK_BASE, &s->vdisk_ram); dinfo->is_default = 1; - rom_add_file_fixed(blk_bs(blk)->filename, NIAGARA_VDISK_BASE, -1); + rom_add_file_fixed(blk_name(blk), NIAGARA_VDISK_BASE, -1); } else { - error_report("could not load ram disk '%s'", - blk_bs(blk)->filename); + error_report("could not load ram disk '%s'", blk_name(blk)); exit(1); } } |