From: Patrick Delaunay Date: Tue, 9 Feb 2021 10:48:51 +0000 (+0100) Subject: env: sf: update the use of macro ENV_SAVE_PTR X-Git-Tag: v2025.01-rc5-pxa1908~1917^2~3 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=e41f55b32e0ac38da77d8f86792164faac5ef7c5;p=u-boot.git 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 --- diff --git a/env/sf.c b/env/sf.c index e13d41478b..20358f5c3f 100644 --- a/env/sf.c +++ b/env/sf.c @@ -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, };