diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2024-09-12 15:41:39 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-01 08:44:39 -0600 |
commit | d7c59bfc3b20bc6d602b33ac24d7ae8698650b87 (patch) | |
tree | 3afd6f8075d8a82d3f905beabd6ae089925b2644 /drivers/fpga/intel_sdm_mb.c | |
parent | 2857b983f8d0dfcf2d1659d1fd4b1ea24f37c4ec (diff) |
env: mmc: refactor mmc_offset_try_partition()
In preparation for fixing the handling of a the case of redundant
environment defined in two separate partitions with the U-Boot env
GUID, refactor the
for ()
if (str)
...
#ifdef CONFIG_FOO
if (!str)
..
#endif
to
if (str)
for ()
else if (CONFIG_FOO && !str)
for ()
and put those for loops in separate functions.
No functional change intended, but I did change the direct access of
info.type_guid into using the disk_partition_type_guid() helper, so
that I could avoid the #ifdef and use IS_ENABLED() in the if() statement.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'drivers/fpga/intel_sdm_mb.c')
0 files changed, 0 insertions, 0 deletions