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:
Song Liu 2026-03-05 15:15:25 -08:00 committed by Josh Poimboeuf
parent c19c854b30
commit a1cbaff2ea

View File

@ -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;
}