bpf: Avoid unnecessary use of comma operator in verifier
PATCH 1/1 bpf: Avoid unnecessary use of comma operator in verifier
Although it does not seem to have any untoward side-effects, the use of ';' to separate to assignments seems more appropriate than ','.
Flagged by clang-17 -Wcomma
No functional change intended.
Compile tested only.
--- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/verifier.c +1 -1
@@ -9616,7 +9616,7 @@ static int set_find_vma_callback_state(struct bpf_verifier_env *env, callee->regs[BPF_REG_2 ].type =PTR_TO_BTF_ID ;__mark_reg_known_zero (&callee->regs[BPF_REG_2 ]); callee->regs[BPF_REG_2 ].btf = btf_vmlinux; - callee->regs[BPF_REG_2 ].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA ], + callee->regs[BPF_REG_2 ].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA ];/* pointer to stack or null */ callee->regs[BPF_REG_3 ] = caller->regs[BPF_REG_4 ];
Quoted 10 lines · Simon Horman
Although it does not seem to have any untoward side-effects, the use of ';' to separate to assignments seems more appropriate than ','.
Flagged by clang-17 -Wcomma
No functional change intended.
Compile tested only.Signed-off-by Simon Horman <[email protected]>---
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 9 lines · On Thu, 21 Dec 2023 18:03:52 +0100 you wrote:
Although it does not seem to have any untoward side-effects, the use of ';' to separate to assignments seems more appropriate than ','.
Flagged by clang-17 -Wcomma
No functional change intended.
Compile tested only.[...]
Here is the summary with links:
- [bpf-next] bpf: Avoid unnecessary use of comma operator in verifier
https://git.kernel.org/bpf/bpf-next/c/5abde6246522
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html