diff options
author | Simon Glass <sjg@chromium.org> | 2023-11-18 14:04:51 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-13 11:51:24 -0500 |
commit | f7fac5e7f5a29e6c0e0de61b08caaaa32df0c6fd (patch) | |
tree | bb5e41846c2d8b0b165ba8af7976a45e95bf2dcb /env | |
parent | 1d38722e012c4ca496d5069b95a60bd3392ccf9e (diff) | |
download | u-boot-f7fac5e7f5a29e6c0e0de61b08caaaa32df0c6fd.tar.gz u-boot-f7fac5e7f5a29e6c0e0de61b08caaaa32df0c6fd.tar.bz2 u-boot-f7fac5e7f5a29e6c0e0de61b08caaaa32df0c6fd.zip |
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>
Diffstat (limited to 'env')
-rw-r--r-- | env/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -495,7 +495,7 @@ U_BOOT_ENV_LOCATION(mmc) = { .location = ENVL_MMC, ENV_NAME("MMC") .load = env_mmc_load, -#ifndef CONFIG_SPL_BUILD +#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_SPL_BUILD) .save = env_save_ptr(env_mmc_save), .erase = ENV_ERASE_PTR(env_mmc_erase) #endif |