Skip to contentSkip to conversation

nvme-fabrics: Use seq_putc() in __nvmf_concat_opt_tokens()

PATCH Applied Markus Elfring 2 participants 2 messages Jul 13, 2024 – Jul 15, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-fabrics: Use seq_putc() in __nvmf_concat_opt_tokens()

From: Markus Elfring <[email protected]>
Date: Sat, 13 Jul 2024 15:43:17 +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.

---
 drivers/nvme/host/fabrics.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/fabrics.c +2 -2
index 44e342a46f39..f5f545fa0103 100644
@@ -1403,10 +1403,10 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file)
 		tok = &opt_tokens[idx];
 		if (tok->token == NVMF_OPT_ERR)
 			continue;
-		seq_puts(seq_file, ",");
+		seq_putc(seq_file, ',');
 		seq_puts(seq_file, tok->pattern);
 	}
-	seq_puts(seq_file, "\n");
+	seq_putc(seq_file, '\n');
 }
 
 static int nvmf_dev_show(struct seq_file *seq_file, void *private)

--
2.45.2

maintainer Applied
#1 lore raw
Quoted 4 lines · Markus Elfring

Single characters should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was transformed by using the Coccinelle software.

Thanks, applied to nvme-6.11.