public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARC-setup: Use seq_putc() in show_cpuinfo()
@ 2016-10-15 19:56 SF Markus Elfring
  2016-10-17 16:25 ` Vineet Gupta
  0 siblings, 1 reply; 5+ messages in thread
From: SF Markus Elfring @ 2016-10-15 19:56 UTC (permalink / raw)
  To: linux-snps-arc

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 15 Oct 2016 21:31:16 +0200

A single character (line break) 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 <elfring@users.sourceforge.net>
---
 arch/arc/kernel/setup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index 3df7f9c..e3f5432 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -494,8 +494,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 
 	free_page((unsigned long)str);
 done:
-	seq_printf(m, "\n");
-
+	seq_putc(m, '\n');
 	return 0;
 }
 
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-17 17:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-15 19:56 [PATCH] ARC-setup: Use seq_putc() in show_cpuinfo() SF Markus Elfring
2016-10-17 16:25 ` Vineet Gupta
2016-10-17 17:19   ` SF Markus Elfring
2016-10-17 17:23     ` Vineet Gupta
2016-10-17 17:39       ` SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox