netfs: Use seq_putc() in fscache_cookies_seq_show()
Subsystems (3)
PATCH 1/1 netfs: Use seq_putc() in fscache_cookies_seq_show()
From: Markus Elfring <[email protected]>
Date: Sat, 13 Jul 2024 20:35:35 +0200
Single characters should be put into a sequence.
Thus use the corresponding function “seq_putc”.
This issue was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- fs/netfs/fscache_cookie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/netfs/fscache_cookie.c +2 -2
@@ -1134,7 +1134,7 @@ static int fscache_cookies_seq_show(struct seq_file *m, void *v) auxlen = cookie->aux_len;if (keylen >0 || auxlen >0 ) { -seq_puts (m," " ); +seq_putc (m,' ' ); p = keylen <=sizeof (cookie->inline_key) ? cookie->inline_key : cookie->key;for (; keylen >0 ; keylen--)
@@ -1148,7 +1148,7 @@ static int fscache_cookies_seq_show(struct seq_file *m, void *v) } } -seq_puts (m,"\n" ); +seq_putc (m,'\n' );return 0 ; }
--
2.45.2