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 <ehabkost@redhat.com>
This commit is contained in:
Eduardo Habkost 2020-12-10 15:47:12 -05:00 committed by Kevin O'Connor
parent 4912bae2d1
commit 107391619a
1 changed files with 1 additions and 1 deletions

View 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.