mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
bb2277b3ee
commit
7341714d6e
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue