]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Fix listing boot devices
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:57:53 +0000 (21:57 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commit85ce73ad5bb86509faf1cfe03f1ec495d8f66777
tree59a2736c2065d68a79cbcc951a67d1729dec7f4b
parent74fc1744e6bdc6c577c118a742344294952a0d4e
bootstd: Fix listing boot devices

bootdev_list() uses uclass_*_device_err() to iterate devices.
However, the only value _err adds is returning an error when the device
pointer is null, and that's checked anyway.

Also there is some intent to report errors, and that's what
uclass_*_device_check() is for, use it.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c