board_r: remove superfluous #ifdef CONFIG_PRAM
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.
Signed-off-by Heinrich Schuchardt <[email protected]>
--- common/board_r.c | 2 -- 1 file changed, 2 deletions(-)
common/board_r.c +0 -2
@@ -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
PATCH 1/1 board_r: remove superfluous #ifdef CONFIG_PRAM
Quoted 11 lines · Heinrich Schuchardt
initr_mem()is already enclosed by#if defined(CONFIG_PRAM) #endifSo there is no need to check
CONFIG_PRAMagain inside the function.Signed-off-by Heinrich Schuchardt <[email protected]>--- common/board_r.c | 2 -- 1 file changed, 2 deletions(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 board_r: remove superfluous #ifdef CONFIG_PRAM
In reply to Heinrich SchuchardtQuoted 9 lines · Heinrich Schuchardt
initr_mem()is already enclosed by#if defined(CONFIG_PRAM) #endifSo there is no need to check
CONFIG_PRAMagain inside the function.Signed-off-by Heinrich Schuchardt <[email protected]>Reviewed-by Simon Glass <[email protected]>
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>