diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-01-07 00:54:20 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-19 15:49:29 -0500 |
commit | 7341714d6e489fd2b552181deae1e5dca2d85b52 (patch) | |
tree | 0021c6373b5b01779a207ba13a0fffad9ab66045 /common/board_r.c | |
parent | bb2277b3ee163de41f3e6f41bec24624f7f41f80 (diff) | |
download | u-boot-7341714d6e489fd2b552181deae1e5dca2d85b52.zip u-boot-7341714d6e489fd2b552181deae1e5dca2d85b52.tar.gz u-boot-7341714d6e489fd2b552181deae1e5dca2d85b52.tar.bz2 |
board_r: remove superfluous #ifdef CONFIG_PRAM
initr_mem() is already enclosed by
#if defined(CONFIG_PRAM)
#endif
So there is no need to check CONFIG_PRAM again inside the
function.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c index 2a9df6b..2baa47f 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -624,9 +624,7 @@ int initr_mem(void) ulong pram = 0; char memsz[32]; -# ifdef CONFIG_PRAM pram = env_get_ulong("pram", 10, CONFIG_PRAM); -# endif sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram)); env_set("mem", memsz); |