Skip to content

Commit a03d375

Browse files
Chen NiAlexei Starovoitov
authored andcommitted
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>
1 parent caa4237 commit a03d375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/bpf/prog_tests/fd_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ static inline int bpf_prog_get_map_ids(int prog_fd, __u32 *nr_map_ids, __u32 *ma
8383
int err;
8484

8585
memset(&info, 0, len);
86-
info.nr_map_ids = *nr_map_ids,
87-
info.map_ids = ptr_to_u64(map_ids),
86+
info.nr_map_ids = *nr_map_ids;
87+
info.map_ids = ptr_to_u64(map_ids);
8888

8989
err = bpf_prog_get_info_by_fd(prog_fd, &info, &len);
9090
if (!ASSERT_OK(err, "bpf_prog_get_info_by_fd"))

0 commit comments

Comments
 (0)