]> Git Repo - u-boot.git/commitdiff
boot: fdt: Clean up env_get_bootm_mapsize()
authorMarek Vasut <[email protected]>
Tue, 26 Mar 2024 22:13:14 +0000 (23:13 +0100)
committerTom Rini <[email protected]>
Thu, 11 Apr 2024 15:38:57 +0000 (09:38 -0600)
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 <[email protected]>
boot/image-board.c

index 13876b790262519890fe53db2fdc34248759d299..09b6e4e0bdca7244c586398df01ebd322c6bf79e 100644 (file)
@@ -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;
This page took 0.036541 seconds and 4 git commands to generate.