libbpf: Ignore hashmap__find() result explicitly in btf_dump
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 17 Nov 2022 19:28:24 +0000 (11:28 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 18 Nov 2022 22:13:38 +0000 (23:13 +0100)
commitf80e16b614f303b520465b7c704ff89fab800f2f
tree34a05f070a2f0eaf257a083fa3c432cca52fdf0e
parent97c11d6e31547183e2404087f0fb23b34dbe2cc3
libbpf: Ignore hashmap__find() result explicitly in btf_dump

Coverity is reporting that btf_dump_name_dups() doesn't check return
result of hashmap__find() call. This is intentional, so make it explicit
with (void) cast.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20221117192824.4093553-1-andrii@kernel.org
tools/lib/bpf/btf_dump.c