selftests: net: convert comma to semicolon
authorChen Ni <nichen@iscas.ac.cn>
Wed, 4 Sep 2024 01:44:41 +0000 (09:44 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 23:55:49 +0000 (16:55 -0700)
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>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240904014441.1065753-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/psock_fanout.c

index 1a736f700be49bd1a0ad1cd4009af35d0169c172..4f31e92ebd96c604b90efc98049133bac40f7ac2 100644 (file)
@@ -165,9 +165,9 @@ static void sock_fanout_set_ebpf(int fd)
        attr.insns = (unsigned long) prog;
        attr.insn_cnt = ARRAY_SIZE(prog);
        attr.license = (unsigned long) "GPL";
-       attr.log_buf = (unsigned long) log_buf,
-       attr.log_size = sizeof(log_buf),
-       attr.log_level = 1,
+       attr.log_buf = (unsigned long) log_buf;
+       attr.log_size = sizeof(log_buf);
+       attr.log_level = 1;
 
        pfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr));
        if (pfd < 0) {