boot: Move preparing bootdev into a function
authorSimon Glass <sjg@chromium.org>
Sun, 12 Oct 2025 06:43:56 +0000 (00:43 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 14 Oct 2025 22:12:50 +0000 (16:12 -0600)
commit996ded5463fd48497b6aa904a5647c2533d73ab3
treed9fab1b23dae8bb2449932ec491abd6804025577
parentf6cd0a36cee32e89449f71ce495dc8f4cd175ad8
boot: Move preparing bootdev into a function

We will want to use this same logic in another place within iter_inc(),
so split it out into its own function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootflow.c