From a8992e788aba46f6f129af3111682be86236074f Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 18 Nov 2019 20:02:07 -0500 Subject: 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 Cc: Joe Hershberger Signed-off-by: Tom Rini Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- include/configs/TQM834x.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/configs/TQM834x.h') diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h index 9bf5d9d3fd..c8537e0313 100644 --- a/include/configs/TQM834x.h +++ b/include/configs/TQM834x.h @@ -191,7 +191,6 @@ #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) for env */ #define CONFIG_ENV_SIZE 0x8000 /* 32K max size */ #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ -- cgit v1.2.3