bootstd: Simplify locating existing bootdevs
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:16 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commitcb698b0a3e80eb75941414a1cac75a7c87ab9982
tree83f8beb011f0737dfe96e03cdf05d2b9b827d9e4
parent6a6638f0939dca65c7d1cd0d766957d3d3adc519
bootstd: Simplify locating existing bootdevs

There is no point in trying to match the alias order for bootdevs, since
build_order() either sorts them by priority, uses the boot_targets
environment variable or the bootdev-order property.

Just use the iterator instead, to simplify the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c