bpftool: Fix errno variable usage
authorBenjamin Poirier <bpoirier@suse.com>
Thu, 11 Apr 2019 08:03:32 +0000 (17:03 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Apr 2019 00:30:14 +0000 (17:30 -0700)
commit77d764263d1165a2edf13735915fc39bc44abf1d
treead753ffb68150f74bf080338fa84a832612275f5
parent7f0c57fec80f198ae9fcd06e5bbca13196815a4b
bpftool: Fix errno variable usage

The test meant to use the saved value of errno. Given the current code, it
makes no practical difference however.

Fixes: bf598a8f0f77 ("bpftool: Improve handling of ENOENT on map dumps")
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/map.c