From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1UAQzN-0000cD-5f for barebox@lists.infradead.org; Tue, 26 Feb 2013 20:19:03 +0000 From: Sascha Hauer Date: Tue, 26 Feb 2013 21:18:30 +0100 Message-Id: <1361909936-2665-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1361909936-2665-1-git-send-email-s.hauer@pengutronix.de> References: <1361909936-2665-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 03/29] of: removed unused variables To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox