From: WANG Cong Date: Thu, 16 Oct 2008 05:01:57 +0000 (-0700) Subject: kernel/kallsyms.c: fix double return X-Git-Tag: firefly_0821_release~17626 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7968b3d9a673e922ab980b2616945e63a52d88fe;p=firefly-linux-kernel-4.4.55.git 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 Cc: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 38fc10ac7541..5072cf1685a2 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)