mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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 <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>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
a2f2731008
commit
3ad3243f8a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user