[PATCH 1/5] blackfin-cplbinfo: Use seq_puts() in cplbinfo_print_header()

From: SF Markus Elfring
Date: Wed Oct 19 2016 - 16:47:04 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Oct 2016 21:00:10 +0200

A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function "seq_puts".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
arch/blackfin/kernel/cplbinfo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/blackfin/kernel/cplbinfo.c b/arch/blackfin/kernel/cplbinfo.c
index 5b80d59..991d9d3 100644
--- a/arch/blackfin/kernel/cplbinfo.c
+++ b/arch/blackfin/kernel/cplbinfo.c
@@ -36,7 +36,8 @@ struct cplbinfo_data {

static void cplbinfo_print_header(struct seq_file *m)
{
- seq_printf(m, "Index\tAddress\t\tData\tSize\tU/RD\tU/WR\tS/WR\tSwitch\n");
+ seq_puts(m,
+ "Index\tAddress\t\tData\tSize\tU/RD\tU/WR\tS/WR\tSwitch\n");
}

static int cplbinfo_nomore(struct cplbinfo_data *cdata)
--
2.10.1