aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-03-26 23:13:14 +0100
committerTom Rini <trini@konsulko.com>2024-04-11 09:38:57 -0600
commitca8d4dfdbdc092f0d5b064a10dcd33567a0737ef (patch)
tree54aaf7ffc42452b2955e8d797975b346dd06427b
parent5fb569b3e3c6fcb93b8af7baf113f8f0649c5323 (diff)
downloadu-boot-ca8d4dfdbdc092f0d5b064a10dcd33567a0737ef.zip
u-boot-ca8d4dfdbdc092f0d5b064a10dcd33567a0737ef.tar.gz
u-boot-ca8d4dfdbdc092f0d5b064a10dcd33567a0737ef.tar.bz2
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>
-rw-r--r--boot/image-board.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index 13876b7..09b6e4e 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -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;