diff options
| author | Yuntao Wang <[email protected]> | 2022-02-23 16:52:44 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-02-23 14:53:21 -0800 |
| commit | 08894d9c647aad08ddd19398e03a0aa1a70b7dc8 (patch) | |
| tree | 1bd2fa948081b859b42c8bc1b99192cd5eee4b1f /tools/perf/scripts/python/bin | |
| parent | a19df7139440258e02126f1c795ba64932a8e949 (diff) | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions