libbpf: Cleanup linker_append_elf_relos
authorViktor Malik <vmalik@redhat.com>
Wed, 1 Mar 2023 08:53:55 +0000 (09:53 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Mar 2023 19:13:11 +0000 (11:13 -0800)
commit4672129127eed0d16ab1b4b70b4e49014e49e8bb
treef3a9fe2000347bf76596a2174ca57fc933e5c023
parent7832d06bd9f9080d9ceae388bb81bf33adce3850
libbpf: Cleanup linker_append_elf_relos

Clang Static Analyser (scan-build) reports some unused symbols and dead
assignments in the linker_append_elf_relos function. Clean these up.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/c5c8fe9f411b69afada8399d23bb048ef2a70535.1677658777.git.vmalik@redhat.com
tools/lib/bpf/linker.c