diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:48:16 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:41 +0300 |
commit | 4b7cb058df35222632efa3f71aad63757b226440 (patch) | |
tree | 72710fc3ffb7aa06ebf4cf1baa306a8988cd0472 /boot | |
parent | 91943ff7038f9c47fb310dbc22150b5664c8fbf7 (diff) | |
download | u-boot-4b7cb058df35222632efa3f71aad63757b226440.tar.xz |
bootstd: Drop the old bootflow_scan_first()
This function is not used outside tests. Drop it and rename
bootflow_scan_dev() since it is how we start a scan now.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/bootflow.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index 50d9c2e813..750732f708 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -324,9 +324,9 @@ static int bootflow_check(struct bootflow_iter *iter, struct bootflow *bflow) return 0; } -int bootflow_scan_bootdev(struct udevice *dev, const char *label, - struct bootflow_iter *iter, int flags, - struct bootflow *bflow) +int bootflow_scan_first(struct udevice *dev, const char *label, + struct bootflow_iter *iter, int flags, + struct bootflow *bflow) { int ret; @@ -371,18 +371,6 @@ int bootflow_scan_bootdev(struct udevice *dev, const char *label, return 0; } -int bootflow_scan_first(struct bootflow_iter *iter, int flags, - struct bootflow *bflow) -{ - int ret; - - ret = bootflow_scan_bootdev(NULL, NULL, iter, flags, bflow); - if (ret) - return log_msg_ret("start", ret); - - return 0; -} - int bootflow_scan_next(struct bootflow_iter *iter, struct bootflow *bflow) { int ret; |