env: add ENV_ERASE_PTR macro
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 9 Feb 2021 10:48:50 +0000 (11:48 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 16 Apr 2021 21:32:34 +0000 (17:32 -0400)
commit1af031ac3e3e75ea1ae58da093db956a8c9bc144
tree3f972a312974cb7a43b09c9bf580cf1705d418ec
parent5557eec01cbfb0e415775434f29542dffb1a4423
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>
env/ext4.c
env/mmc.c
include/env_internal.h