diff options
| author | Simon Glass <[email protected]> | 2023-04-24 13:49:49 +1200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-04-26 08:43:05 -0400 |
| commit | 1aabe4ef2b746c9aa76a25787a6aef57a165ca86 (patch) | |
| tree | 503cf2b631550c04b713f0604e6d854187325d53 /include/linux/mfd | |
| parent | f9fb57c6917f9172f0393c67463e0b1230726e66 (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 <[email protected]>
Diffstat (limited to 'include/linux/mfd')
0 files changed, 0 insertions, 0 deletions
