Skip to content

Commit

Permalink
board_r: remove superfluous #ifdef CONFIG_PRAM
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
xypron authored and trini committed Jan 19, 2018
1 parent bb2277b commit 7341714
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/board_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7341714

Please sign in to comment.