1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-03 21:07:11 +01:00
Files
u-boot-megous/boot/bootdev-uclass.c
Simon Glass 1aabe4ef2b bootstd: Adjust code ordering to work around compiler quirk
At present when debugging is off, bootdev_find_in_blk() sometimes fails
to find a valid bootflow, e.g. with virtio. Accessing the 'blk' variable
later in the function seems to correct it.

Move the 'ret' check before the debug statement and set the block device
again aftewards, to work around this.

Signed-off-by: Simon Glass <sjg@chromium.org>
2023-04-26 08:43:05 -04:00

21 KiB