smbios: Correct logic in smbios_get_header()

This function skips over every second table. Fix it by dropping the
extra iterator update.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: a68c0625aa ("smbios: coreboot: Update smbios_get_header() to..")
This commit is contained in:
Simon Glass
2025-08-30 13:18:33 -06:00
parent ce6a5a6624
commit deb404a6be

View File

@@ -71,8 +71,6 @@ const struct smbios_header *smbios_get_header(const struct smbios_info *info,
header = smbios_next_table(info, header)) {
if (header->type == type)
return header;
header = smbios_next_table(info, header);
}
return NULL;