]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Remove redundant .rodata section name comparison
authorMuchun Song <songmuchun@bytedance.com>
Sun, 12 Apr 2020 14:44:05 +0000 (22:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2020 08:53:50 +0000 (10:53 +0200)
commit9bb97f3228e0ca2427f77e59a41344f956494555
treec7febd5e41265e480b6235e1ae4def29ce80fc66
parent18f035a411c7d33fbde1e4543fe4fbc0ec180baf
objtool: Remove redundant .rodata section name comparison

If the prefix of section name is not '.rodata', the following
function call can never return 0.

    strcmp(sec->name, C_JUMP_TABLE_SECTION)

So the name comparison is pointless, just remove it.

Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c