diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-10 15:47:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-12-18 11:39:13 -0500 |
commit | 107391619a0dafd5900e8933e72dd6fdae97d2d1 (patch) | |
tree | f1f2e9f8a0c1e1339d9ca54d5f1eafa5284738a1 | |
parent | 4912bae2d14e9258f0c873aa09139bf73fc3ebb9 (diff) | |
download | seabios-107391619a0dafd5900e8933e72dd6fdae97d2d1.zip seabios-107391619a0dafd5900e8933e72dd6fdae97d2d1.tar.gz seabios-107391619a0dafd5900e8933e72dd6fdae97d2d1.tar.bz2 |
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>
-rw-r--r-- | src/fw/csm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fw/csm.c b/src/fw/csm.c index 7406902..bc14a92 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. |