summaryrefslogtreecommitdiff
path: root/include/env_internal.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-02-09 13:48:50 +0300
committerTom Rini <trini@konsulko.com>2021-04-17 00:32:34 +0300
commit1af031ac3e3e75ea1ae58da093db956a8c9bc144 (patch)
tree3f972a312974cb7a43b09c9bf580cf1705d418ec /include/env_internal.h
parent5557eec01cbfb0e415775434f29542dffb1a4423 (diff)
downloadu-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 'include/env_internal.h')
-rw-r--r--include/env_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/env_internal.h b/include/env_internal.h
index 708c833a55..b7bddcb00d 100644
--- a/include/env_internal.h
+++ b/include/env_internal.h
@@ -211,6 +211,7 @@ struct env_driver {
#endif
#define ENV_SAVE_PTR(x) (CONFIG_IS_ENABLED(SAVEENV) ? (x) : NULL)
+#define ENV_ERASE_PTR(x) (CONFIG_IS_ENABLED(CMD_ERASEENV) ? (x) : NULL)
extern struct hsearch_data env_htab;