[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] hw/arm/virt: Remove null-check in virt_build_sm
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 1/6] hw/arm/virt: Remove null-check in virt_build_smbios() |
Date: |
Fri, 7 Dec 2018 18:03:55 +0100 |
Since af1f60a4022, the fw_cfg field is always created in machvirt_init().
There is no need to null check it.
Signed-off-by: Philippe Mathieu-Daudé <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 f69e7eb399..36303ed59c 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1279,10 +1279,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.17.2