diff options
author | Simon Glass <sjg@chromium.org> | 2024-11-15 16:19:11 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-15 08:48:42 -0600 |
commit | 6a3eb84b18333eb4beb7e660fa9ae8ccff07b0c4 (patch) | |
tree | b249db2403152ebb44f6b29b57752b392671a61b /boot/bootflow.c | |
parent | 529f92677defa4788ef0d43229caa5771be041a0 (diff) |
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>
Diffstat (limited to 'boot/bootflow.c')
-rw-r--r-- | boot/bootflow.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index d8807eb109d..804809dc100 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -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); |