env: mmc: Clean up env_mmc_load() ifdeffery
authorMarek Vasut <marex@denx.de>
Fri, 21 Feb 2025 18:47:24 +0000 (19:47 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Feb 2025 14:35:52 +0000 (08:35 -0600)
commit8cf24a03a4defaaf4654b21548173bed6f33e1ee
treebba2ee97497272736e7cdad702e39f410dabdf23
parent5ce1d026b10e9cba8a22c83e826234cd8d48044b
env: mmc: Clean up env_mmc_load() ifdeffery

Rename the variants of env_mmc_load() for redundant and non-redundant
environment to env_mmc_load_redundant() and env_mmc_load_singular()
respectively and convert the env_mmc_load() implementation to use of
if (IS_ENABLED(...)). As a result, drop __maybe_unused from
mmc_env_is_redundant_in_both_boot_hwparts().

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
env/mmc.c