commit | ccf365eac0c7705591dee0158ae5c198d9e8f858 | [log] [tgz] |
---|---|---|
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | Wed Aug 31 10:16:18 2022 +0800 |
committer | Martin KaFai Lau <martin.lau@kernel.org> | Thu Sep 01 14:04:07 2022 -0700 |
tree | a816d7b25e4077d4f15df9802d71331efd062941 | |
parent | 23d86c8e02e55e511cd37e7ef2280a0030750954 [diff] |
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 <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20220831021618.86770-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>