Skip to content

Commit 1a7812b

Browse files
elfringkeithbusch
authored andcommitted
nvme-fabrics: Use seq_putc() in __nvmf_concat_opt_tokens()
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>
1 parent ab091ec commit 1a7812b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,10 +1403,10 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file)
14031403
tok = &opt_tokens[idx];
14041404
if (tok->token == NVMF_OPT_ERR)
14051405
continue;
1406-
seq_puts(seq_file, ",");
1406+
seq_putc(seq_file, ',');
14071407
seq_puts(seq_file, tok->pattern);
14081408
}
1409-
seq_puts(seq_file, "\n");
1409+
seq_putc(seq_file, '\n');
14101410
}
14111411

14121412
static int nvmf_dev_show(struct seq_file *seq_file, void *private)

0 commit comments

Comments
 (0)