mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
objtool/klp: Remove redundant strcmp() in correlate_symbols()
find_global_symbol_by_name() already compares names of the two symbols, so there is no need to compare them again. Signed-off-by: Song Liu <song@kernel.org> Link: https://patch.msgid.link/20260305231531.3847295-2-song@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
This commit is contained in:
parent
c19c854b30
commit
a1cbaff2ea
|
|
@ -454,7 +454,7 @@ static int correlate_symbols(struct elfs *e)
|
|||
|
||||
sym2 = find_global_symbol_by_name(e->patched, sym1->name);
|
||||
|
||||
if (sym2 && !sym2->twin && !strcmp(sym1->name, sym2->name)) {
|
||||
if (sym2 && !sym2->twin) {
|
||||
sym1->twin = sym2;
|
||||
sym2->twin = sym1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user