Commit 7968b3d9 authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds

kernel/kallsyms.c: fix double return

Commit 6dd06c9f ("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: default avatarWANG Cong <wangcong@zeuux.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f337b9c5
...@@ -260,7 +260,6 @@ const char *kallsyms_lookup(unsigned long addr, ...@@ -260,7 +260,6 @@ const char *kallsyms_lookup(unsigned long addr,
/* see if it's in a module */ /* see if it's in a module */
return module_address_lookup(addr, symbolsize, offset, modname, return module_address_lookup(addr, symbolsize, offset, modname,
namebuf); namebuf);
return NULL;
} }
int lookup_symbol_name(unsigned long addr, char *symname) int lookup_symbol_name(unsigned long addr, char *symname)
......
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