[PATCH] netfs: Use seq_putc() in fscache_cookies_seq_show()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
 fs/netfs/fscache_cookie.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
 }

--
2.45.2






[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux