Blackfin: simplify symbol_lookup() a bit
authorMike Frysinger <vapier@gentoo.org>
Tue, 6 Jan 2009 15:00:48 +0000 (10:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 19:14:54 +0000 (15:14 -0400)
No need to skip a byte as the symbol table handles this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/traps.c

index a2c6f1eceba894ceadf218ef299ae76440a0a282..2121b0e4cbcb0492b330cf14320ee394e164fbfa 100644 (file)
@@ -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;