bpf: Simplify character output in seq_print_delegate_opts()
Subsystems (2)
PATCH 1/1 bpf: Simplify character output in seq_print_delegate_opts()
From: Markus Elfring <[email protected]>
Date: Mon, 15 Jul 2024 11:12:30 +0200
Single characters should be put into a sequence.
Thus use the corresponding function “seq_putc” for two selected calls.
This issue was transformed by using the Coccinelle software.
--- kernel/bpf/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/bpf/inode.c +2 -2
@@ -709,10 +709,10 @@ static void seq_print_delegate_opts(struct seq_file *m, msk =1ULL << e->val;if (delegate_msk & msk) {/* emit lower-case name without prefix */ -seq_printf (m,"%c" , first ?'=' :':' ); +seq_putc (m, first ?'=' :':' ); name += pfx_len;while (*name) { -seq_printf (m,"%c" ,tolower (*name)); +seq_putc (m,tolower (*name)); name++; }
--
2.45.2
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 9 lines · On Mon, 15 Jul 2024 11:20:27 +0200 you wrote:
From: Markus Elfring <[email protected]>
Date: Mon, 15 Jul 2024 11:12:30 +0200Single characters should be put into a sequence.
Thus use the corresponding function “seq_putc” for two selected calls.This issue was transformed by using the Coccinelle software.
[...]
Here is the summary with links:
- bpf: Simplify character output in seq_print_delegate_opts()
https://git.kernel.org/bpf/bpf-next/c/51f1bb929647
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html