]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_dt_fixup: use fdtdec_get_bool
authorRandolph Sapp <rs@ti.com>
Wed, 22 Apr 2026 17:09:43 +0000 (12:09 -0500)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 May 2026 14:29:08 +0000 (16:29 +0200)
Use the more straightforward fdtdec_get_bool instead of fdt_getprop and
a return code check.

Signed-off-by: Randolph Sapp <rs@ti.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/efi_dt_fixup.c

index 544e1aa980860873df1de2e770bf6366d4aae055..333711b9957c5fdf9f4cc51f6ce385fe4a4ed15b 100644 (file)
@@ -123,8 +123,7 @@ void efi_carve_out_dt_rsv(void *fdt)
                            fdtdec_get_is_enabled(fdt, subnode)) {
                                bool nomap;
 
-                               nomap = !!fdt_getprop(fdt, subnode, "no-map",
-                                                     NULL);
+                               nomap = fdtdec_get_bool(fdt, subnode, "no-map");
                                efi_reserve_memory(fdt_addr, fdt_size, nomap);
                        }
                        subnode = fdt_next_subnode(fdt, subnode);