nvme-fabrics: Use seq_putc() in __nvmf_concat_opt_tokens()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 13 Jul 2024 13:43:17 +0000 (15:43 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 15 Jul 2024 20:43:41 +0000 (13:43 -0700)
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>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/fabrics.c

index 44e342a46f39f9d1f7ae985e73ae9289cb134da0..f5f545fa0103547444f5531434b9bdea3e3a521e 100644 (file)
@@ -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)