diff options
| author | Suchit Karunakaran <suchitkarunakaran@gmail.com> | 2026-05-24 05:58:53 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-29 06:02:57 +0300 |
| commit | 9a720e090eb5155fbd584a3f7eca18f82610a2b3 (patch) | |
| tree | c55d4a441fe7425ee686d654ef59adfdb1f85860 /include/linux | |
| parent | 9b435d23f51e55b62dda3a345a9f8931248ca514 (diff) | |
| download | linux-9a720e090eb5155fbd584a3f7eca18f82610a2b3.tar.xz | |
bpf: replace pop/push emptiness check with bpf_list_empty()
Simplify fq_flows_is_empty() by replacing the pop/push based emptiness
check with a direct call to bpf_list_empty().
This avoids unnecessary list mutation and simplifies the code while
preserving correctness.
Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
Changes since v1:
- Removed unused variable node
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260524025853.13786-1-suchitkarunakaran@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
