Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf: Simplify character output in seq_print_delegate_opts()

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.

Suggested-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/abde0992-3d71-44d2-ab27-75b382933a22@web.de

authored by

Markus Elfring and committed by
Andrii Nakryiko
f157f9cb df862de4

+2 -2
+2 -2
kernel/bpf/inode.c
··· 709 709 msk = 1ULL << e->val; 710 710 if (delegate_msk & msk) { 711 711 /* emit lower-case name without prefix */ 712 - seq_printf(m, "%c", first ? '=' : ':'); 712 + seq_putc(m, first ? '=' : ':'); 713 713 name += pfx_len; 714 714 while (*name) { 715 - seq_printf(m, "%c", tolower(*name)); 715 + seq_putc(m, tolower(*name)); 716 716 name++; 717 717 } 718 718