]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board_r: remove superfluous #ifdef CONFIG_PRAM
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 6 Jan 2018 23:54:20 +0000 (00:54 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2018 20:49:29 +0000 (15:49 -0500)
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>
common/board_r.c

index 2a9df6b716bf151079fd80bab3c463a44e971fb7..2baa47f3a0cac0f841e6e37b77cd7f1d4fd1470a 100644 (file)
@@ -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);