mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 14:18:14 +01:00
boot: fdt: Clean up env_get_bootm_mapsize()
Reduce tmp variable use and remove unnecessary type cast in env_get_bootm_mapsize(). This aligns the env variable parsing with env_get_bootm_low(). No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
5fb569b3e3
commit
ca8d4dfdbd
@ -149,13 +149,10 @@ phys_size_t env_get_bootm_size(void)
|
||||
|
||||
phys_size_t env_get_bootm_mapsize(void)
|
||||
{
|
||||
phys_size_t tmp;
|
||||
char *s = env_get("bootm_mapsize");
|
||||
|
||||
if (s) {
|
||||
tmp = (phys_size_t)simple_strtoull(s, NULL, 16);
|
||||
return tmp;
|
||||
}
|
||||
if (s)
|
||||
return simple_strtoull(s, NULL, 16);
|
||||
|
||||
#if defined(CFG_SYS_BOOTMAPSZ)
|
||||
return CFG_SYS_BOOTMAPSZ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user