Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/of/base.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index f016f90..704ba8e 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -876,10 +876,8 @@ int of_unflatten_dtb(struct fdt_header *fdt) int nextoffset; /* next node offset from libfdt */ uint32_t tag; /* tag */ int len; /* length of the property */ - int level = 0; /* keep track of nesting level */ const struct fdt_property *fdt_prop; const char *pathp; - int depth = 10000; struct device_node *node = NULL, *n, *root = NULL; struct property *p; @@ -942,8 +940,7 @@ int of_unflatten_dtb(struct fdt_header *fdt) of_alias_scan(); return 0; default: - if (level <= depth) - printf("Unknown tag 0x%08X\n", tag); + printf("Unknown tag 0x%08X\n", tag); return -EINVAL; } nodeoffset = nextoffset; -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox