bpf: Remove an unnecessary check.
authorKui-Feng Lee <thinker.li@gmail.com>
Sat, 3 Feb 2024 05:51:19 +0000 (21:51 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 5 Feb 2024 18:25:08 +0000 (10:25 -0800)
commitdf9705eaa0bad034dad0f73386ff82f5c4dd7e24
tree524621a4914a63253486e260a7d1ed7932108f7b
parent2a79690eae953daaac232f93e6c5ac47ac539f2d
bpf: Remove an unnecessary check.

The "i" here is always equal to "btf_type_vlen(t)" since
the "for_each_member()" loop never breaks.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240203055119.2235598-1-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/bpf_struct_ops.c