diff options
| author | Randolph Sapp <[email protected]> | 2026-04-22 12:09:43 -0500 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-05-05 16:29:08 +0200 |
| commit | 3ad3243f8a062c0a14adcb645c83f45b55eaeab9 (patch) | |
| tree | 36b678d55a25f6fa6681de9da3d088cb1bd2fcf7 | |
| parent | a2f273100851c10f1a906d7215744b6d8ebbbaa4 (diff) | |
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 <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Anshul Dalal <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | lib/efi_loader/efi_dt_fixup.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
