diff options
| author | Martin KaFai Lau <[email protected]> | 2024-03-15 12:21:12 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-03-18 12:48:10 -0700 |
| commit | 7f3edd0c72c3f7214f8f28495f2e6466348eb128 (patch) | |
| tree | a53d58eb46894feba698e54bbb36eb1a5371512f /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 4c8644f86c854c214aaabbcc24a27fa4c7e6a951 (diff) | |
bpf: Remove unnecessary err < 0 check in bpf_struct_ops_map_update_elem
There is a "if (err)" check earlier, so the "if (err < 0)"
check that this patch removing is unnecessary. It was my overlook
when making adjustments to the bpf_struct_ops_prepare_trampoline()
such that the caller does not have to worry about the new page when
the function returns error.
Fixes: 187e2af05abe ("bpf: struct_ops supports more than one page for trampolines.")
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions