summaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-01-16 22:07:59 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-01-17 08:33:18 -0800
commitb7d7f3e185b6e643dcd49d1486b11cade8519008 (patch)
tree2eeca14116e1f2fdf5df051c0945109f6ced3e05 /scripts/gdb
parentbc0eb9a333918d2cc4f42f7f4cf09eaf029ac9de (diff)
libbpf: Simplify BTF initialization logic
Current implementation of bpf_object's BTF initialization is very convoluted and thus prone to errors. It doesn't have to be like that. This patch simplifies it significantly. This code also triggered static analysis issues over logically dead code due to redundant error checks. This simplification should fix that as well. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200117060801.1311525-3-andriin@fb.com
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions