summaryrefslogtreecommitdiff
path: root/env/nand.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-11-18 20:02:07 -0500
committerTom Rini <trini@konsulko.com>2019-11-20 18:31:24 -0500
commita8992e788aba46f6f129af3111682be86236074f (patch)
treeab5b83a45f55ad016ef020320bb2960cf7337f27 /env/nand.c
parent3eee45d93681a9c6bb67b73068da4dc179ae4e7f (diff)
downloadu-boot-a8992e788aba46f6f129af3111682be86236074f.tar.gz
u-boot-a8992e788aba46f6f129af3111682be86236074f.tar.bz2
u-boot-a8992e788aba46f6f129af3111682be86236074f.zip
env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check
We have CONFIG_ENV_SIZE_IS_REDUND but don't really use it. We have one board where we can simply multiple CONFIG_ENV_SIZE by two for the same result. The other place where we could but were not previously using this is for where env_internal.h checks for if we should set ENV_IS_EMBEDDED. This seems like the most likely use, historically, of the variable, but it was not used. Add logic to check for this now. Cc: Wolfgang Denk <wd@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'env/nand.c')
-rw-r--r--env/nand.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/env/nand.c b/env/nand.c
index 9f3dc635cf..e631bf2fda 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -31,11 +31,6 @@
#error CONFIG_ENV_OFFSET_REDUND must have CONFIG_CMD_SAVEENV & CONFIG_CMD_NAND
#endif
-#if defined(CONFIG_ENV_SIZE_REDUND) && \
- (CONFIG_ENV_SIZE_REDUND != CONFIG_ENV_SIZE)
-#error CONFIG_ENV_SIZE_REDUND should be the same as CONFIG_ENV_SIZE
-#endif
-
#ifndef CONFIG_ENV_RANGE
#define CONFIG_ENV_RANGE CONFIG_ENV_SIZE
#endif