aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/prog_tests/fd_array.c
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2025-03-10 11:20:45 +0800
committerAlexei Starovoitov <ast@kernel.org>2025-03-15 11:48:58 -0700
commita03d375330de32d859e827b3aad1e57908976708 (patch)
treea52bd8da2f9cb47242f20d5b517dac6c9a7f70b1 /tools/testing/selftests/bpf/prog_tests/fd_array.c
parentselftests/bpf: Fix selection of static vs. dynamic LLVM (diff)
downloadwireguard-linux-a03d375330de32d859e827b3aad1e57908976708.tar.xz
wireguard-linux-a03d375330de32d859e827b3aad1e57908976708.zip
selftests/bpf: Convert comma to semicolon
Replace comma between expressions with semicolons. Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it is seems best to use ';' unless ',' is intended. Found by inspection. No functional change intended. Compile tested only. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Anton Protopopov <aspsk@isovalent.com> Link: https://lore.kernel.org/bpf/20250310032045.651068-1-nichen@iscas.ac.cn Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/fd_array.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/fd_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/fd_array.c b/tools/testing/selftests/bpf/prog_tests/fd_array.c
index a1d52e73fb16..9add890c2d37 100644
--- a/tools/testing/selftests/bpf/prog_tests/fd_array.c
+++ b/tools/testing/selftests/bpf/prog_tests/fd_array.c
@@ -83,8 +83,8 @@ static inline int bpf_prog_get_map_ids(int prog_fd, __u32 *nr_map_ids, __u32 *ma
int err;
memset(&info, 0, len);
- info.nr_map_ids = *nr_map_ids,
- info.map_ids = ptr_to_u64(map_ids),
+ info.nr_map_ids = *nr_map_ids;
+ info.map_ids = ptr_to_u64(map_ids);
err = bpf_prog_get_info_by_fd(prog_fd, &info, &len);
if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd"))