tools, bpftool: Fix warning on ignored return value for 'read'
authorQuentin Monnet <quentin.monnet@netronome.com>
Tue, 19 Nov 2019 11:17:06 +0000 (11:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 25 Nov 2019 00:58:44 +0000 (16:58 -0800)
commita0f17cc6665c80ab2765f9244c41ec127821f343
tree210d5eafe2c8e36549729e1df540525b390401c9
parent5d946c5abbaf68083fa6a41824dd79e1f06286d8
tools, bpftool: Fix warning on ignored return value for 'read'

When building bpftool, a warning was introduced by commit a94364603610
("bpftool: Allow to read btf as raw data"), because the return value
from a call to 'read()' is ignored. Let's address it.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191119111706.22440-1-quentin.monnet@netronome.com
tools/bpf/bpftool/btf.c