[PATCH] NFS: Use seq_putc() in nfs_show_path()

From: Markus Elfring
Date: Sat Jul 13 2024 - 15:46:40 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
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