From: Simon Glass Date: Sun, 31 Dec 2023 15:25:52 +0000 (-0700) Subject: efi: smbios: Drop support for SMBIOS2 tables X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=aa8499680c14afa80ed731b4cfcd6934b4f93712;p=u-boot.git efi: smbios: Drop support for SMBIOS2 tables Only the v3 table is supported now, so always use this when installing the EFI table. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_smbios.c b/lib/efi_loader/efi_smbios.c index 5cbce6dc4e..5db342ee0d 100644 --- a/lib/efi_loader/efi_smbios.c +++ b/lib/efi_loader/efi_smbios.c @@ -27,7 +27,6 @@ enum { */ efi_status_t efi_smbios_register(void) { - const efi_guid_t *guid; ulong addr; efi_status_t ret; void *buf; @@ -47,8 +46,7 @@ efi_status_t efi_smbios_register(void) /* Install SMBIOS information as configuration table */ buf = map_sysmem(addr, 0); - guid = !memcmp(buf, "_SM_", 4) ? &smbios_guid : &smbios3_guid; - ret = efi_install_configuration_table(guid, buf); + ret = efi_install_configuration_table(&smbios3_guid, buf); unmap_sysmem(buf); return ret;