mirror of https://gitee.com/openkylin/qemu.git
hw/arm/virt: Remove null-check in virt_build_smbios()
Since commit578f3c7b08
("arm: add fw_cfg to "virt" board", 2014-12-22), the machvirt_init() unconditionally creates the fw_cfg object. Later, commitc30e15658b
("smbios: implement smbios support for mach-virt", 2015-09-07) added a superfluous null-check on it. Remove this superfluous check. Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190309181920.30553-2-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
4a90846d6f
commit
945309260d
|
@ -1281,10 +1281,6 @@ static void virt_build_smbios(VirtMachineState *vms)
|
|||
size_t smbios_tables_len, smbios_anchor_len;
|
||||
const char *product = "QEMU Virtual Machine";
|
||||
|
||||
if (!vms->fw_cfg) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (kvm_enabled()) {
|
||||
product = "KVM Virtual Machine";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue