bootstd: Drop the bootdev-specific list of bootflows
This list is only used by two functions, which can be updated to iterate through the global list. Take this approach, which allows the bootdev list to be dropped. Overall this makes the code slightly more complicated, but will allow moving the bootflow list into an alist Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -476,8 +476,6 @@ void bootflow_free(struct bootflow *bflow)
|
||||
|
||||
void bootflow_remove(struct bootflow *bflow)
|
||||
{
|
||||
if (bflow->dev)
|
||||
list_del(&bflow->bm_node);
|
||||
list_del(&bflow->glob_node);
|
||||
|
||||
bootflow_free(bflow);
|
||||
|
||||
Reference in New Issue
Block a user