diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-06-17 12:26:52 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-18 00:10:39 +0200 |
commit | 01b29d1dc9a06e2cdc6a0172d35605eb0300ecb2 (patch) | |
tree | 32c3601baec04859f7cf3722b39c61b4434e1016 /tools/lib/bpf/str_error.c | |
parent | 9c6660d0406f8c32d21957ca9853108513bea8b1 (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/str_error.c')
0 files changed, 0 insertions, 0 deletions