]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
selftests/bpf: Use semicolon instead of comma in test_verifier.c
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 2 Feb 2023 06:31:26 +0000 (14:31 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 3 Feb 2023 04:38:32 +0000 (20:38 -0800)
Just silence the following checkpatch warning:

WARNING: Possible comma where semicolon could be used

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/1675319486-27744-3-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c

index 8c808551dfd74a1fb1697ae9af929ff08a4fc4a1..887c49dc5abd44a8c42fd4db95984141772383fe 100644 (file)
@@ -209,7 +209,7 @@ loop:
                insn[i++] = BPF_MOV64_IMM(BPF_REG_2, 1);
                insn[i++] = BPF_MOV64_IMM(BPF_REG_3, 2);
                insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
-                                        BPF_FUNC_skb_vlan_push),
+                                        BPF_FUNC_skb_vlan_push);
                insn[i] = BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, len - i - 3);
                i++;
        }
@@ -220,7 +220,7 @@ loop:
                i++;
                insn[i++] = BPF_MOV64_REG(BPF_REG_1, BPF_REG_6);
                insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0,
-                                        BPF_FUNC_skb_vlan_pop),
+                                        BPF_FUNC_skb_vlan_pop);
                insn[i] = BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, len - i - 3);
                i++;
        }