mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
mmc: env: Unify the U_BOOT_ENV_LOCATION conditions
The declaration of U_BOOT_ENV_LOCATION() uses a different #ifdef condition from the code it calls. Use the same condition to avoid a build warning if CONFIG_CMD_SAVEENV is disabled. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
1d38722e01
commit
f7fac5e7f5
1 changed files with 1 additions and 1 deletions
2
env/mmc.c
vendored
2
env/mmc.c
vendored
|
@ -495,7 +495,7 @@ U_BOOT_ENV_LOCATION(mmc) = {
|
||||||
.location = ENVL_MMC,
|
.location = ENVL_MMC,
|
||||||
ENV_NAME("MMC")
|
ENV_NAME("MMC")
|
||||||
.load = env_mmc_load,
|
.load = env_mmc_load,
|
||||||
#ifndef CONFIG_SPL_BUILD
|
#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_SPL_BUILD)
|
||||||
.save = env_save_ptr(env_mmc_save),
|
.save = env_save_ptr(env_mmc_save),
|
||||||
.erase = ENV_ERASE_PTR(env_mmc_erase)
|
.erase = ENV_ERASE_PTR(env_mmc_erase)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue