From 1af031ac3e3e75ea1ae58da093db956a8c9bc144 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Tue, 9 Feb 2021 11:48:50 +0100 Subject: 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 --- env/ext4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'env/ext4.c') diff --git a/env/ext4.c b/env/ext4.c index ec643f2..9f65afb 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), }; -- cgit v1.1