commit | 01b29d1dc9a06e2cdc6a0172d35605eb0300ecb2 | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andriin@fb.com> | Mon Jun 17 12:26:52 2019 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Tue Jun 18 00:10:39 2019 +0200 |
tree | 32c3601baec04859f7cf3722b39c61b4434e1016 | |
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>