BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] libbpf: fix several issues reported by static analysers
@ 2023-03-01  8:53 Viktor Malik
  2023-03-01  8:53 ` [PATCH bpf-next 1/3] libbpf: remove unnecessary ternary operator Viktor Malik
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Viktor Malik @ 2023-03-01  8:53 UTC (permalink / raw)
  To: bpf
  Cc: Andrii Nakryiko, Alexei Starovoitov, Daniel Borkmann,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Nathan Chancellor, Nick Desaulniers, Tom Rix, Viktor Malik

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(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-01 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01  8:53 [PATCH bpf-next 0/3] libbpf: fix several issues reported by static analysers Viktor Malik
2023-03-01  8:53 ` [PATCH bpf-next 1/3] libbpf: remove unnecessary ternary operator Viktor Malik
2023-03-01  8:53 ` [PATCH bpf-next 2/3] libbpf: remove several dead assignments Viktor Malik
2023-03-01  8:53 ` [PATCH bpf-next 3/3] libbpf: cleanup linker_append_elf_relos Viktor Malik
2023-03-01 19:20 ` [PATCH bpf-next 0/3] libbpf: fix several issues reported by static analysers patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox