mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
lib: fdtdec: fdtdec_get_addr_size_fixed remove checks
With 8 bytes addressing even on 32 bit machines these checks are no longer valid. Remove them. Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
10
lib/fdtdec.c
10
lib/fdtdec.c
@@ -95,16 +95,6 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
|
|||||||
|
|
||||||
debug("%s: %s: ", __func__, prop_name);
|
debug("%s: %s: ", __func__, prop_name);
|
||||||
|
|
||||||
if (na > (sizeof(fdt_addr_t) / sizeof(fdt32_t))) {
|
|
||||||
debug("(na too large for fdt_addr_t type)\n");
|
|
||||||
return FDT_ADDR_T_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ns > (sizeof(fdt_size_t) / sizeof(fdt32_t))) {
|
|
||||||
debug("(ns too large for fdt_size_t type)\n");
|
|
||||||
return FDT_ADDR_T_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
prop = fdt_getprop(blob, node, prop_name, &len);
|
prop = fdt_getprop(blob, node, prop_name, &len);
|
||||||
if (!prop) {
|
if (!prop) {
|
||||||
debug("(not found)\n");
|
debug("(not found)\n");
|
||||||
|
Reference in New Issue
Block a user