commit | a40f7825e10cf7bc40153dce2d468a091e5ae871 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Apr 24 13:49:49 2023 +1200 |
committer | Tom Rini <trini@konsulko.com> | Wed Apr 26 08:43:05 2023 -0400 |
tree | 503cf2b631550c04b713f0604e6d854187325d53 | |
parent | 8f97c67e28419a8c6abb60b025b67b064adfa648 [diff] |
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>