]> git.baikalelectronics.ru Git - uboot.git/commit
env: mcc: Drop unnecessary #ifdefs
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 10 Nov 2022 10:48:59 +0000 (11:48 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 17:37:09 +0000 (12:37 -0500)
commit591dbade1a45e5f34d7f514f3ec8793303d35d17
tree5a5f8f8574cd4be1017c44a884467804a26a86c3
parent113812dcca5dab5edf22e9d5ed3e0752ea96ebf0
env: mcc: Drop unnecessary #ifdefs

This file has a lot of conditional code and much of it is unnecessary.
Clean this up to reduce the number of build combinations.

This patch replaces the test on CONFIG_ENV_OFFSET_REDUND for the
more coherent CONFIG_SYS_REDUNDAND_ENVIRONMENT.

This patch also corrects a compilation issue in init_mmc_for_env()
when CONFIG_SYS_MMC_ENV_PART is not activated, env_mmc_orig_hwpart is
not defined.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
env/mmc.c