[<prev] [next>] [day] [month] [year] [list]
Message-ID: <aace3b69-d26d-4f4f-a584-97f1bcb59f29@web.de>
Date: Sat, 13 Jul 2024 20:44:54 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: netfs@...ts.linux.dev, linux-fsdevel@...r.kernel.org,
kernel-janitors@...r.kernel.org, David Howells <dhowells@...hat.com>,
Jeff Layton <jlayton@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] netfs: Use seq_putc() in fscache_cookies_seq_show()
From: Markus Elfring <elfring@...rs.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@...rs.sourceforge.net>
---
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
Powered by blists - more mailing lists