aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYuntao Wang <ytcoode@gmail.com>2022-02-23 16:52:44 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-02-23 14:53:21 -0800
commit08894d9c647aad08ddd19398e03a0aa1a70b7dc8 (patch)
tree1bd2fa948081b859b42c8bc1b99192cd5eee4b1f /tools/perf/scripts/python/export-to-sqlite.py
parentbpftool: Remove usage of reallocarray() (diff)
downloadlinux-dev-08894d9c647aad08ddd19398e03a0aa1a70b7dc8.tar.xz
linux-dev-08894d9c647aad08ddd19398e03a0aa1a70b7dc8.zip
libbpf: Simplify the find_elf_sec_sz() function
The check in the last return statement is unnecessary, we can just return the ret variable. But we can simplify the function further by returning 0 immediately if we find the section size and -ENOENT otherwise. Thus we can also remove the ret variable. Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220223085244.3058118-1-ytcoode@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions