aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorJiapeng Chong <[email protected]>2022-08-31 02:16:18 +0000
committerMartin KaFai Lau <[email protected]>2022-09-01 21:04:07 +0000
commitccf365eac0c7705591dee0158ae5c198d9e8f858 (patch)
treea816d7b25e4077d4f15df9802d71331efd062941 /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parentMerge branch 'Use this_cpu_xxx for preemption-safety' (diff)
downloadkernel-ccf365eac0c7705591dee0158ae5c198d9e8f858.tar.gz
kernel-ccf365eac0c7705591dee0158ae5c198d9e8f858.zip
bpf: Remove useless else if
The assignment of the else and else if branches is the same, so the else if here is redundant, so we remove it and add a comment to make the code here readable. ./kernel/bpf/cgroup_iter.c:81:6-8: WARNING: possible condition with no effect (if == else). Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2016 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions