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>
This commit is contained in:
Patrick Delaunay 2021-02-09 11:48:51 +01:00 committed by Tom Rini
parent 1af031ac3e
commit e41f55b32e
1 changed files with 1 additions and 1 deletions

2
env/sf.c vendored
View File

@ -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,
};