diff options
author | 2025-01-17 18:18:13 +0800 | |
---|---|---|
committer | 2025-01-20 09:09:01 -0800 | |
commit | 588c6ead325aecc9894c9925cf1f771b77437bee (patch) | |
tree | 57354835cb6b28b2bc111b2b7be8aa00aa2d5eb4 /scripts/generate_rust_analyzer.py | |
parent | bpf: Free special fields after unlock in htab_lru_map_delete_node() (diff) | |
download | wireguard-linux-588c6ead325aecc9894c9925cf1f771b77437bee.tar.xz wireguard-linux-588c6ead325aecc9894c9925cf1f771b77437bee.zip |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions