aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/test_libbpf.cpp
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-06-17 15:26:52 -0400
committerDaniel Borkmann <daniel@iogearbox.net>2019-06-17 18:10:39 -0400
commit01b29d1dc9a06e2cdc6a0172d35605eb0300ecb2 (patch)
tree32c3601baec04859f7cf3722b39c61b4434e1016 /tools/lib/bpf/test_libbpf.cpp
parent9c6660d0406f8c32d21957ca9853108513bea8b1 (diff)
libbpf: streamline ELF parsing error-handling
Simplify ELF parsing logic by exiting early, as there is no common clean up path to execute. That makes it unnecessary to track when err was set and when it was cleared. It also reduces nesting in some places. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/lib/bpf/test_libbpf.cpp')
0 files changed, 0 insertions, 0 deletions