aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/bpf/relo_core.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-03-01 11:13:11 -0800
committerAndrii Nakryiko <andrii@kernel.org>2023-03-01 11:13:11 -0800
commit07e2193f106d61332e549b4e31d95da38261e718 (patch)
treef3a9fe2000347bf76596a2174ca57fc933e5c023 /tools/lib/bpf/relo_core.c
parentbe35f4af719c94df137cd611bf497d658eb3adc2 (diff)
parent4672129127eed0d16ab1b4b70b4e49014e49e8bb (diff)
Merge branch 'libbpf: fix several issues reported by static analysers'
Viktor Malik says: ==================== Fixing several issues reported by Coverity and Clang Static Analyzer (scan-build) for libbpf, mostly removing unnecessary symbols and assignments. No functional changes should be introduced. ==================== Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/lib/bpf/relo_core.c')
-rw-r--r--tools/lib/bpf/relo_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/lib/bpf/relo_core.c b/tools/lib/bpf/relo_core.c
index c4b0e81ae293..a26b2f5fa0fc 100644
--- a/tools/lib/bpf/relo_core.c
+++ b/tools/lib/bpf/relo_core.c
@@ -1551,9 +1551,6 @@ int __bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const st
if (level <= 0)
return -EINVAL;
- local_t = btf_type_by_id(local_btf, local_id);
- targ_t = btf_type_by_id(targ_btf, targ_id);
-
recur:
depth--;
if (depth < 0)