IB/hfi1: Replace two seq_puts() calls by seq_putc() in sdma_seqfile_dump_cpu_list()
Subsystems (3)
PATCH 1/1 IB/hfi1: Replace two seq_puts() calls by seq_putc() in sdma_seqfile_dump_cpu_list()
From: Markus Elfring <[email protected]>
Date: Fri, 5 May 2017 10:40:03 +0200
Two single characters should be put into a sequence. Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/infiniband/hw/hfi1/sdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/hfi1/sdma.c +2 -2
@@ -1130,7 +1130,7 @@ void sdma_seqfile_dump_cpu_list(struct seq_file *s,continue ;if (j >0 ) -seq_puts (s,"," ); +seq_putc (s,',' );seq_printf (s," sdma%2d" , rht_node->map[i]->sde[j]->this_idx);
@@ -1138,7 +1138,7 @@ void sdma_seqfile_dump_cpu_list(struct seq_file *s,seq_puts (s," ]" ); } -seq_puts (s,"\n" ); +seq_putc (s,'\n' ); }/*
Signature · 1 line
2.12.2