diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-02-09 13:48:50 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-17 00:32:34 +0300 |
commit | 1af031ac3e3e75ea1ae58da093db956a8c9bc144 (patch) | |
tree | 3f972a312974cb7a43b09c9bf580cf1705d418ec /env/ext4.c | |
parent | 5557eec01cbfb0e415775434f29542dffb1a4423 (diff) | |
download | u-boot-1af031ac3e3e75ea1ae58da093db956a8c9bc144.tar.xz |
env: add ENV_ERASE_PTR macro
Add ENV_ERASE_PTR macro to handle erase opts and remove the associated
ifdef.
This patch is a extension of previous commit 82b2f4135719 ("env_internal.h:
add alternative ENV_SAVE_PTR macro").
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'env/ext4.c')
-rw-r--r-- | env/ext4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/env/ext4.c b/env/ext4.c index ec643f2226..9f65afb8a4 100644 --- a/env/ext4.c +++ b/env/ext4.c @@ -188,6 +188,5 @@ U_BOOT_ENV_LOCATION(ext4) = { ENV_NAME("EXT4") .load = env_ext4_load, .save = ENV_SAVE_PTR(env_ext4_save), - .erase = CONFIG_IS_ENABLED(CMD_ERASEENV) ? env_ext4_erase : - NULL, + .erase = ENV_ERASE_PTR(env_ext4_erase), }; |