diff options
| author | Tom Rini <[email protected]> | 2019-11-18 20:02:07 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-11-20 18:31:24 -0500 |
| commit | a8992e788aba46f6f129af3111682be86236074f (patch) | |
| tree | ab5b83a45f55ad016ef020320bb2960cf7337f27 /env/flash.c | |
| parent | 3eee45d93681a9c6bb67b73068da4dc179ae4e7f (diff) | |
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 <[email protected]>
Cc: Joe Hershberger <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'env/flash.c')
| -rw-r--r-- | env/flash.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/env/flash.c b/env/flash.c index 231a5fdf24d..b94ed2b04f8 100644 --- a/env/flash.c +++ b/env/flash.c @@ -28,11 +28,6 @@ DECLARE_GLOBAL_DATA_PTR; # endif #endif -#if defined(CONFIG_ENV_SIZE_REDUND) && \ - (CONFIG_ENV_SIZE_REDUND < CONFIG_ENV_SIZE) -#error CONFIG_ENV_SIZE_REDUND should not be less then CONFIG_ENV_SIZE -#endif - /* TODO([email protected]): Figure out all these special cases */ #if (!defined(CONFIG_MICROBLAZE) && !defined(CONFIG_ARCH_ZYNQ) && \ !defined(CONFIG_TARGET_MCCMON6) && !defined(CONFIG_TARGET_X600) && \ |
