commit | d948e717506ea4723cf66f9b7954b50eaf131faf | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | Thu Nov 10 11:49:00 2022 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Jan 10 12:37:09 2023 -0500 |
tree | 4df6813a90a952362cc571be80e68dd46e7b6906 | |
parent | 036a358f361d4b29e93b570ebd095a6633a15f32 [diff] |
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>