]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: mcc: fix compilation error with ENV_IS_EMBEDDED
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 10 Nov 2022 10:49:00 +0000 (11:49 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 17:37:09 +0000 (12:37 -0500)
commit8566050e247bacb734a57a2529f49139f2c63dce
tree4df6813a90a952362cc571be80e68dd46e7b6906
parent46c9016b7f794ce8761e12b4b971be061dd861a3
env: mcc: fix compilation error with ENV_IS_EMBEDDED

When ENV_IS_EMBEDDED is enabled, ret is not defined but is used as a
return value in env_mmc_load().
This patch correct this issue and simplify the existing code, test only
one time #if defined(ENV_IS_EMBEDDED) and not in the function.

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