From: Randolph Sapp Date: Wed, 22 Apr 2026 17:09:43 +0000 (-0500) Subject: efi_dt_fixup: use fdtdec_get_bool X-Git-Tag: v2026.07-rc2~14^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ad3243f8a062c0a14adcb645c83f45b55eaeab9;p=thirdparty%2Fu-boot.git efi_dt_fixup: use fdtdec_get_bool Use the more straightforward fdtdec_get_bool instead of fdt_getprop and a return code check. Signed-off-by: Randolph Sapp Reviewed-by: Ilias Apalodimas Reviewed-by: Anshul Dalal Reviewed-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/lib/efi_loader/efi_dt_fixup.c b/lib/efi_loader/efi_dt_fixup.c index 544e1aa9808..333711b9957 100644 --- a/lib/efi_loader/efi_dt_fixup.c +++ b/lib/efi_loader/efi_dt_fixup.c @@ -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);