[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] hw/arm/virt: Remove null-check in virt_build_smb
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL 4/5] hw/arm/virt: Remove null-check in virt_build_smbios() |
Date: |
Mon, 11 Mar 2019 20:11:27 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Since commit 578f3c7b0835 ("arm: add fw_cfg to "virt" board",
2014-12-22), the machvirt_init() unconditionally creates the
fw_cfg object. Later, commit c30e15658b1b ("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 <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hw/arm/virt.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 7f66ddad89f6..377e95a4cdb0 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -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";
}
--
2.20.1
- [Qemu-devel] [PULL 0/5] Trivial branch patches, Laurent Vivier, 2019/03/11
- [Qemu-devel] [PULL 1/5] thunk: improve readability of allocation loop, Laurent Vivier, 2019/03/11
- [Qemu-devel] [PULL 3/5] hw/i386: Remove unused include, Laurent Vivier, 2019/03/11
- [Qemu-devel] [PULL 4/5] hw/arm/virt: Remove null-check in virt_build_smbios(),
Laurent Vivier <=
- [Qemu-devel] [PULL 2/5] hw/nvram/fw_cfg: Remove the unnecessary boot_splash_filedata_size, Laurent Vivier, 2019/03/11
- [Qemu-devel] [PULL 5/5] hw/nvram/fw_cfg: Use the ldst API, Laurent Vivier, 2019/03/11
- Re: [Qemu-devel] [PULL 0/5] Trivial branch patches, Peter Maydell, 2019/03/12