diff options
author | Sahid Orentino Ferdjaoui <[email protected]> | 2022-11-20 11:26:07 +0000 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-11-20 16:17:46 -0800 |
commit | 989f285159b84831c54d277112dcf803da51e722 (patch) | |
tree | 25d2e9e8fd77eb7b79c2dbbfd10104be56512bbc /tools/perf/scripts/python | |
parent | 9b8107553424fd87955fed257a807672c2097297 (diff) |
bpftool: replace return value PTR_ERR(NULL) with 0
There is no reasons to keep PTR_ERR() when kern_btf=NULL, let's just
return 0.
This also cleans this part of code from using libbpf_get_error().
Signed-off-by: Sahid Orentino Ferdjaoui <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Suggested-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions