Commit 7341714d6e489fd2b552181deae1e5dca2d85b52

Authored by Heinrich Schuchardt
Committed by Tom Rini
1 parent bb2277b3ee

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -624,9 +624,7 @@
624 624 ulong pram = 0;
625 625 char memsz[32];
626 626  
627   -# ifdef CONFIG_PRAM
628 627 pram = env_get_ulong("pram", 10, CONFIG_PRAM);
629   -# endif
630 628 sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram));
631 629 env_set("mem", memsz);
632 630