Skip to content

libbpf: fix several issues reported by static analysers

Viktor Malik bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3libbpf: remove unnecessary ternary operatortools/lib/bpf/libbpf.c+1 -10 repliesApplied
2/3libbpf: remove several dead assignmentstools/lib/bpf/btf.c tools/lib/bpf/libbpf.c tools/lib/bpf/relo_core.c+0 -60 repliesApplied
3/3libbpf: cleanup linker_append_elf_relostools/lib/bpf/linker.c+2 -90 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] libbpf: fix several issues reported by static analysers

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.

Viktor Malik (3):
libbpf: remove unnecessary ternary operator
libbpf: remove several dead assignments
libbpf: cleanup linker_append_elf_relos

 tools/lib/bpf/btf.c       |  2 --
 tools/lib/bpf/libbpf.c    |  3 +--
 tools/lib/bpf/linker.c    | 11 ++---------
 tools/lib/bpf/relo_core.c |  3 ---
 4 files changed, 3 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.1