diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-02-09 11:48:51 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-16 17:32:34 -0400 |
commit | e41f55b32e0ac38da77d8f86792164faac5ef7c5 (patch) | |
tree | 7b6b0df41a6008e231b8f6b6f510604862ec6f32 | |
parent | 1af031ac3e3e75ea1ae58da093db956a8c9bc144 (diff) | |
download | u-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.tar.gz u-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.tar.bz2 u-boot-e41f55b32e0ac38da77d8f86792164faac5ef7c5.zip |
env: sf: update the use of macro ENV_SAVE_PTR
Remove CONFIG_IS_ENABLED(SAVEENV) as it is already tested in
the ENV_SAVE_PTR macro.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
-rw-r--r-- | env/sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -414,6 +414,6 @@ U_BOOT_ENV_LOCATION(sf) = { .location = ENVL_SPI_FLASH, ENV_NAME("SPIFlash") .load = env_sf_load, - .save = CONFIG_IS_ENABLED(SAVEENV) ? ENV_SAVE_PTR(env_sf_save) : NULL, + .save = ENV_SAVE_PTR(env_sf_save), .init = env_sf_init, }; |