]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Remove several dead assignments
authorViktor Malik <vmalik@redhat.com>
Wed, 1 Mar 2023 08:53:54 +0000 (09:53 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Mar 2023 19:13:11 +0000 (11:13 -0800)
commit7832d06bd9f9080d9ceae388bb81bf33adce3850
treef702f444e553ba446660429e546b529aa1e101b3
parent40e1bcab1e4ce7d7e4d601782a963e8d59d09695
libbpf: Remove several dead assignments

Clang Static Analyzer (scan-build) reports several dead assignments in
libbpf where the assigned value is unconditionally overridden by another
value before it is read. Remove these assignments.

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