[<prev] [next>] [day] [month] [year] [list]
Message-ID: <553b5dad-6b84-4415-86ab-a44a1182d3f9@web.de>
Date: Sat, 13 Jul 2024 21:45:53 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-nfs@...r.kernel.org, kernel-janitors@...r.kernel.org,
Anna Schumaker <anna@...nel.org>, Trond Myklebust <trondmy@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] NFS: Use seq_putc() in nfs_show_path()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 13 Jul 2024 21:35:37 +0200
A single slash 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/nfs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index cbbd4866b0b7..b087720d7811 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -648,7 +648,7 @@ EXPORT_SYMBOL_GPL(nfs_show_devname);
int nfs_show_path(struct seq_file *m, struct dentry *dentry)
{
- seq_puts(m, "/");
+ seq_putc(m, '/');
return 0;
}
EXPORT_SYMBOL_GPL(nfs_show_path);
--
2.45.2
Powered by blists - more mailing lists