diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2023-03-01 11:13:11 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-03-01 11:13:11 -0800 |
commit | 07e2193f106d61332e549b4e31d95da38261e718 (patch) | |
tree | f3a9fe2000347bf76596a2174ca57fc933e5c023 /tools/lib/bpf/btf.c | |
parent | be35f4af719c94df137cd611bf497d658eb3adc2 (diff) | |
parent | 4672129127eed0d16ab1b4b70b4e49014e49e8bb (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/btf.c')
-rw-r--r-- | tools/lib/bpf/btf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c index 9181d36118d2..0a2c079244b6 100644 --- a/tools/lib/bpf/btf.c +++ b/tools/lib/bpf/btf.c @@ -1000,8 +1000,6 @@ static struct btf *btf_parse_elf(const char *path, struct btf *base_btf, } } - err = 0; - if (!btf_data) { pr_warn("failed to find '%s' ELF section in %s\n", BTF_ELF_SEC, path); err = -ENODATA; |