Skip to content

Commit

Permalink
kernel/kallsyms.c: fix double return
Browse files Browse the repository at this point in the history
Commit 6dd06c9 ("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>
  • Loading branch information
WANG Cong authored and torvalds committed Oct 16, 2008
1 parent f337b9c commit 7968b3d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7968b3d

Please sign in to comment.