[PATCH 03/29] of: removed unused variables
Sascha Hauer
s.hauer at pengutronix.de
Tue Feb 26 15:18:30 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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
More information about the barebox
mailing list