commit | 8566050e247bacb734a57a2529f49139f2c63dce | [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 | 46c9016b7f794ce8761e12b4b971be061dd861a3 [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>