diff mbox series

NFS: Use seq_putc() in nfs_show_path()

Message ID 553b5dad-6b84-4415-86ab-a44a1182d3f9@web.de (mailing list archive)
State New
Headers show
Series NFS: Use seq_putc() in nfs_show_path() | expand

Commit Message

Markus Elfring July 13, 2024, 7:45 p.m. UTC
From: Markus Elfring <elfring@users.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@users.sourceforge.net>
---
 fs/nfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.45.2
diff mbox series

Patch

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