From 107391619a0dafd5900e8933e72dd6fdae97d2d1 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 10 Dec 2020 15:47:12 -0500 Subject: csm: Don't check SMBios21Addr before calling copy_smbios_21() copy_smbios_21() already checks if SMBios21Addr is NULL, there's no need to check it before calling the function. Signed-off-by: Eduardo Habkost --- src/fw/csm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw/csm.c b/src/fw/csm.c index 74069028..bc14a925 100644 --- a/src/fw/csm.c +++ b/src/fw/csm.c @@ -172,7 +172,7 @@ handle_csm_0002(struct bregs *regs) // SMBIOS table needs to be copied into the f-seg // XX: OVMF doesn't seem to set SmbiosTableLength so don't check it - if (csm_boot_table->SmbiosTable && !SMBios21Addr) + if (csm_boot_table->SmbiosTable) copy_smbios_21((void *)csm_boot_table->SmbiosTable); // MPTABLE is just there; we don't care where. -- cgit