Skip to contentSkip to conversation

netfs: Use seq_putc() in fscache_cookies_seq_show()

PATCH New Markus Elfring 1 participant 1 message Jul 13, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 fs/netfs/fscache_cookie.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/netfs/fscache_cookie.c +2 -2
index 4d1e8bf4c615..5e490336b90f 100644
@@ -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