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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user