Linux network filesystem support library
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: netfs@lists.linux.dev, linux-fsdevel@vger.kernel.org,
	kernel-janitors@vger.kernel.org,
	David Howells <dhowells@redhat.com>,
	Jeff Layton <jlayton@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] netfs: Use seq_putc() in fscache_cookies_seq_show()
Date: Sat, 13 Jul 2024 20:44:54 +0200	[thread overview]
Message-ID: <aace3b69-d26d-4f4f-a584-97f1bcb59f29@web.de> (raw)

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(-)

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


                 reply	other threads:[~2024-07-13 18:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aace3b69-d26d-4f4f-a584-97f1bcb59f29@web.de \
    --to=markus.elfring@web.de \
    --cc=dhowells@redhat.com \
    --cc=jlayton@kernel.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfs@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox