Skip to contentSkip to conversation

board_r: remove superfluous #ifdef CONFIG_PRAM

PATCH New Heinrich Schuchardt 3 participants 3 messages Jan 6, 2018 – Jan 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 common/board_r.c | 2 --
 1 file changed, 2 deletions(-)
common/board_r.c +0 -2
index 5e7eb2d5cb..98811edc07 100644
@@ -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);
 
Signature · 1 line
2.14.2
#2 lore raw

PATCH 1/1 board_r: remove superfluous #ifdef CONFIG_PRAM

In reply to Heinrich Schuchardt
Quoted 9 lines · Heinrich Schuchardt

initr_mem() is already enclosed by

	#if defined(CONFIG_PRAM)
	#endif

So there is no need to check CONFIG_PRAM again inside the function.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180119/6a0752e9/attachment.sig>