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>
This commit is contained in:
parent
59f0978a7e
commit
a75fa148d6
@ -193,7 +193,7 @@ static const char *symbol_lookup(unsigned long addr, unsigned long *caddr)
|
|||||||
|
|
||||||
while (*sym) {
|
while (*sym) {
|
||||||
sym_addr = simple_strtoul(sym, &esym, 16);
|
sym_addr = simple_strtoul(sym, &esym, 16);
|
||||||
sym = esym + 1;
|
sym = esym;
|
||||||
if (sym_addr > addr)
|
if (sym_addr > addr)
|
||||||
break;
|
break;
|
||||||
*caddr = sym_addr;
|
*caddr = sym_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user