From: Mike Frysinger Date: Tue, 6 Jan 2009 15:00:48 +0000 (-0500) Subject: Blackfin: simplify symbol_lookup() a bit X-Git-Tag: v2009.06-rc1~138^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a75fa148d60b1975403441e45565621bba50d2d9;p=u-boot Blackfin: simplify symbol_lookup() a bit No need to skip a byte as the symbol table handles this. Signed-off-by: Mike Frysinger --- diff --git a/cpu/blackfin/traps.c b/cpu/blackfin/traps.c index a2c6f1eceb..2121b0e4cb 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;