Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Song Liu and committed by
Josh Poimboeuf
a1cbaff2 c19c854b

+1 -1
+1 -1
tools/objtool/klp-diff.c
··· 454 454 455 455 sym2 = find_global_symbol_by_name(e->patched, sym1->name); 456 456 457 - if (sym2 && !sym2->twin && !strcmp(sym1->name, sym2->name)) { 457 + if (sym2 && !sym2->twin) { 458 458 sym1->twin = sym2; 459 459 sym2->twin = sym1; 460 460 }