diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-09 21:21:14 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-15 14:47:35 -0400 |
commit | 542809620e62a3fc2f93c230440c6d105e59b32e (patch) | |
tree | 7580aa67a01ac19a4c426349c7fbc28cfc668cf5 | |
parent | 3988be5fd4369402c410336553bc0ca1920dbe6f (diff) | |
download | u-boot-542809620e62a3fc2f93c230440c6d105e59b32e.zip u-boot-542809620e62a3fc2f93c230440c6d105e59b32e.tar.gz u-boot-542809620e62a3fc2f93c230440c6d105e59b32e.tar.bz2 |
common/board_f: avoid -Wtype-limits warning
CONFIG_SYS_SDRAM_BASE maybe zero. Avoid a build warning when compiling with
-Wtype-limits.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/board_f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c index 5223453..a5ead31 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -309,7 +309,7 @@ __weak int mach_cpu_init(void) /* Get the top of usable RAM */ __weak ulong board_get_usable_ram_top(ulong total_size) { -#ifdef CONFIG_SYS_SDRAM_BASE +#if defined(CONFIG_SYS_SDRAM_BASE) && CONFIG_SYS_SDRAM_BASE > 0 /* * Detect whether we have so much RAM that it goes past the end of our * 32-bit address space. If so, clip the usable RAM so it doesn't. |