]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sprint_symbol() cleanup
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 16 Jul 2007 06:41:24 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:50 +0000 (09:05 -0700)
Remove pointless `else'.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kallsyms.c

index fed54418626c10727662a79d0e505ee302e0bcbf..0d662475dd9f59cb8393f23e9d5c9521de1cef9e 100644 (file)
@@ -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,
+
+       if (modname)
+               return sprintf(buffer, "%s+%#lx/%#lx [%s]", name, offset,
                                size, modname);
-               else
-                       return sprintf(buffer, "%s+%#lx/%#lx", name, offset, size);
-       }
+       else
+               return sprintf(buffer, "%s+%#lx/%#lx", name, offset, size);
 }
 
 /* Look up a kernel symbol and print it to the kernel messages. */