summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-06 10:00:48 -0500
committerMike Frysinger <vapier@gentoo.org>2009-03-23 15:14:54 -0400
commita75fa148d60b1975403441e45565621bba50d2d9 (patch)
tree66a1cd68c7029dcdf6b282f08312d71168a56c7f
parent59f0978a7e78d20277ddbde7caf0ea877f3cfd98 (diff)
downloadu-boot-imx-a75fa148d60b1975403441e45565621bba50d2d9.zip
u-boot-imx-a75fa148d60b1975403441e45565621bba50d2d9.tar.gz
u-boot-imx-a75fa148d60b1975403441e45565621bba50d2d9.tar.bz2
Blackfin: simplify symbol_lookup() a bit
No need to skip a byte as the symbol table handles this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--cpu/blackfin/traps.c2
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;