Skip to contentSkip to conversation

dtc: flattree: Removed unused variable

PATCH New Fabio Estevam 1 participant 1 message Mar 6, 2012 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dtc: flattree: Removed unused variable

Fix the following warning message:

scripts/dtc/flattree.c:700:14: warning: variable 'p' set but not used [-Wunused-but-set-variable]

---
 scripts/dtc/flattree.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
scripts/dtc/flattree.c +0 -2
index ead0332..28d0b23 100644
@@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
 {
 	struct reserve_info *reservelist = NULL;
 	struct reserve_info *new;
-	const char *p;
 	struct fdt_reserve_entry re;
 
 	/*
@@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
 	 *
 	 * First pass, count entries.
 	 */
-	p = inb->ptr;
 	while (1) {
 		flat_read_chunk(inb, &re, sizeof(re));
 		re.address  = fdt64_to_cpu(re.address);
Signature · 1 line
1.7.1