diff mbox series

netfs: Use seq_putc() in fscache_cookies_seq_show()

Message ID aace3b69-d26d-4f4f-a584-97f1bcb59f29@web.de (mailing list archive)
State New
Headers show
Series netfs: Use seq_putc() in fscache_cookies_seq_show() | expand

Commit Message

Markus Elfring July 13, 2024, 6:44 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 fs/netfs/fscache_cookie.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.45.2
diff mbox series

Patch

diff --git a/fs/netfs/fscache_cookie.c b/fs/netfs/fscache_cookie.c
index 4d1e8bf4c615..5e490336b90f 100644
--- a/fs/netfs/fscache_cookie.c
+++ b/fs/netfs/fscache_cookie.c
@@ -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;
 }