From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Mon, 24 Oct 2016 12:28:55 +0000 Subject: [PATCH 2/4] MIPS/kernel/proc: Use seq_putc() in show_cpuinfo() Message-Id: <0c465554-d78d-2e2c-ae45-34d6f9f507fc@users.sourceforge.net> List-Id: References: <3809e713-2f08-db60-92c1-21d735a4f35b@users.sourceforge.net> In-Reply-To: <3809e713-2f08-db60-92c1-21d735a4f35b@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-mips@linux-mips.org, Andrea Gelmini , Andrew Morton , Leonid Yegoshin , Masahiro Yamada , Matt Redfearn , Paul Burton , Paul Gortmaker , =?UTF-8?Q?Ralf_B=c3=a4chle?= , Zubair Lutfullah Kakakhel Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Mon, 24 Oct 2016 12:54:15 +0200 A few single characters (line breaks) 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 --- arch/mips/kernel/proc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 4eff2ae..765489b 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c @@ -122,7 +122,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) if (cpu_has_eva) seq_printf(m, "%s", " eva"); if (cpu_has_htw) seq_printf(m, "%s", " htw"); if (cpu_has_xpa) seq_printf(m, "%s", " xpa"); - seq_printf(m, "\n"); + seq_putc(m, '\n'); if (cpu_has_mmips) { seq_printf(m, "micromips kernel\t: %s\n", @@ -152,9 +152,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) raw_notifier_call_chain(&proc_cpuinfo_chain, 0, &proc_cpuinfo_notifier_args); - - seq_printf(m, "\n"); - + seq_putc(m, '\n'); return 0; } -- 2.10.1