]> xenbits.xensource.com Git - seabios.git/commitdiff
csm: Don't check SMBios21Addr before calling copy_smbios_21()
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 10 Dec 2020 20:47:12 +0000 (15:47 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 18 Dec 2021 16:39:13 +0000 (11:39 -0500)
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 <ehabkost@redhat.com>
src/fw/csm.c

index 74069028498268e39615dcc80345fb4298028966..bc14a925332b1ca9eeb14b2cdfaaee98eb71e26e 100644 (file)
@@ -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.