diff options
author | Hou Tao <houtao1@huawei.com> | 2025-01-17 13:18:13 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-01-20 20:09:01 +0300 |
commit | 588c6ead325aecc9894c9925cf1f771b77437bee (patch) | |
tree | 57354835cb6b28b2bc111b2b7be8aa00aa2d5eb4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 45dc92c32a476daf60eaef855014d0ea35780ba5 (diff) | |
download | linux-588c6ead325aecc9894c9925cf1f771b77437bee.tar.xz |
bpf: Bail out early in __htab_map_lookup_and_delete_elem()
Use goto statement to bail out early when the target element is not
found, instead of using a large else branch to handle the more likely
case. This change doesn't affect functionality and simply make the code
cleaner.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@kernel.org>
Link: https://lore.kernel.org/r/20250117101816.2101857-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions