diff options
author | Keerthy <j-keerthy@ti.com> | 2018-12-21 21:54:30 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-01-14 17:47:20 -0700 |
commit | f51f6715a5013f37620c38f0430e21d4736e235a (patch) | |
tree | 8c3479d784c1f78c0405aab8d31aed2c5f527698 /lib/fdtdec.c | |
parent | d0a30a8ae2228baa8714a6a0028b944defccb352 (diff) |
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>
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r-- | lib/fdtdec.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 6f8ec0dbed..18663ce6bd 100644 --- a/lib/fdtdec.c +++ b/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); - 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); if (!prop) { debug("(not found)\n"); |