diff options
author | Andrii Nakryiko <[email protected]> | 2020-01-16 22:07:59 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-01-17 08:33:18 -0800 |
commit | b7d7f3e185b6e643dcd49d1486b11cade8519008 (patch) | |
tree | 2eeca14116e1f2fdf5df051c0945109f6ced3e05 /drivers/usb/cdns3/cdns3-debug.h | |
parent | bc0eb9a333918d2cc4f42f7f4cf09eaf029ac9de (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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions