Commit 19769b76 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

sprint_symbol() cleanup

Remove pointless `else'.
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d45bce8f
......@@ -317,13 +317,12 @@ int sprint_symbol(char *buffer, unsigned long address)
name = kallsyms_lookup(address, &size, &offset, &modname, namebuf);
if (!name)
return sprintf(buffer, "0x%lx", address);
else {
if (modname)
return sprintf(buffer, "%s+%#lx/%#lx [%s]", name, offset,
size, modname);
else
return sprintf(buffer, "%s+%#lx/%#lx", name, offset, size);
}
}
/* Look up a kernel symbol and print it to the kernel messages. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment