[U-Boot] [PATCH 15/32] Blackfin: simplify symbol_lookup() a bit

Mike Frysinger vapier at gentoo.org
Mon Mar 23 03:45:24 CET 2009


No need to skip a byte as the symbol table handles this.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 cpu/blackfin/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpu/blackfin/traps.c b/cpu/blackfin/traps.c
index a2c6f1e..2121b0e 100644
--- a/cpu/blackfin/traps.c
+++ b/cpu/blackfin/traps.c
@@ -193,7 +193,7 @@ static const char *symbol_lookup(unsigned long addr, unsigned long *caddr)
 
 	while (*sym) {
 		sym_addr = simple_strtoul(sym, &esym, 16);
-		sym = esym + 1;
+		sym = esym;
 		if (sym_addr > addr)
 			break;
 		*caddr = sym_addr;
-- 
1.6.2



More information about the U-Boot mailing list