Skip to content
Snippets Groups Projects
Commit 2bf94120 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

libfdt: Drop -FDT_ERR_TOODEEP


This error code has not been upstreamed and is not really needed since it
is unlikely to be triggered. Drop it to maintain compatability with
upstream.

Reported-by: default avatarPeter Robinson <pbrobinson@gmail.com>

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
parent de88e4ba
No related branches found
No related tags found
No related merge requests found
...@@ -397,7 +397,7 @@ int fdt_next_region(const void *fdt, ...@@ -397,7 +397,7 @@ int fdt_next_region(const void *fdt,
last_node = offset; last_node = offset;
p.depth++; p.depth++;
if (p.depth == FDT_MAX_DEPTH) if (p.depth == FDT_MAX_DEPTH)
return -FDT_ERR_TOODEEP; return -FDT_ERR_BADSTRUCTURE;
name = fdt_get_name(fdt, offset, &len); name = fdt_get_name(fdt, offset, &len);
if (p.end - path + 2 + len >= path_len) if (p.end - path + 2 + len >= path_len)
return -FDT_ERR_NOSPACE; return -FDT_ERR_NOSPACE;
......
...@@ -93,12 +93,7 @@ ...@@ -93,12 +93,7 @@
/* FDT_ERR_NOPHANDLES: The device tree doesn't have any /* FDT_ERR_NOPHANDLES: The device tree doesn't have any
* phandle available anymore without causing an overflow */ * phandle available anymore without causing an overflow */
#define FDT_ERR_TOODEEP 18 #define FDT_ERR_MAX 17
/* FDT_ERR_TOODEEP: The depth of a node has exceeded the internal
* libfdt limit. This can happen if you have more than
* FDT_MAX_DEPTH nested nodes. */
#define FDT_ERR_MAX 18
/**********************************************************************/ /**********************************************************************/
/* Low-level functions (you probably don't need these) */ /* Low-level functions (you probably don't need these) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment