mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
layout: Use linked list for struct romentry
This gets rid of the entry limit and hopefully makes future layout handling easier. We start by making `struct flashrom_layout` private to `layout.c`. Change-Id: I60a0aa1007ebcd5eb401db116f835d129b3e9732 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33521 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -505,11 +505,6 @@ static int flashrom_layout_parse_fmap(struct flashrom_layout **layout,
|
||||
if (!fmap || !l)
|
||||
return 1;
|
||||
|
||||
if (l->num_entries + fmap->nareas > l->capacity) {
|
||||
msg_gerr("Cannot add fmap entries to layout - Too many entries.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 0, area = fmap->areas; i < fmap->nareas; i++, area++) {
|
||||
snprintf(name, sizeof(name), "%s", area->name);
|
||||
if (flashrom_layout_add_region(l, area->offset, area->offset + area->size - 1, name))
|
||||
|
Reference in New Issue
Block a user