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:
parent
1af031ac3e
commit
e41f55b32e
2
env/sf.c
vendored
2
env/sf.c
vendored
@ -414,6 +414,6 @@ U_BOOT_ENV_LOCATION(sf) = {
|
|||||||
.location = ENVL_SPI_FLASH,
|
.location = ENVL_SPI_FLASH,
|
||||||
ENV_NAME("SPIFlash")
|
ENV_NAME("SPIFlash")
|
||||||
.load = env_sf_load,
|
.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,
|
.init = env_sf_init,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user