diff options
author | WANG Cong <wangcong@zeuux.org> | 2008-10-15 22:01:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 11:21:32 -0700 |
commit | 7968b3d9a673e922ab980b2616945e63a52d88fe (patch) | |
tree | c71113991adcf123413677ea2b12ce1c247804b0 /kernel/kallsyms.c | |
parent | f337b9c58332bdecde965b436e47ea4c94d30da0 (diff) | |
download | kernel-crypto-7968b3d9a673e922ab980b2616945e63a52d88fe.tar.gz kernel-crypto-7968b3d9a673e922ab980b2616945e63a52d88fe.tar.xz kernel-crypto-7968b3d9a673e922ab980b2616945e63a52d88fe.zip |
kernel/kallsyms.c: fix double return
Commit 6dd06c9fbe025f542bce4cdb91790c0f91962722 ("module: make
module_address_lookup safe") introduced double returns in the function
kallsyms_lookup(), it's weird. The second one should be removed.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kallsyms.c')
-rw-r--r-- | kernel/kallsyms.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 38fc10ac754..5072cf1685a 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -260,7 +260,6 @@ const char *kallsyms_lookup(unsigned long addr, /* see if it's in a module */ return module_address_lookup(addr, symbolsize, offset, modname, namebuf); - return NULL; } int lookup_symbol_name(unsigned long addr, char *symname) |