Skip to contentSkip to conversation

score-setup: Combine two seq_printf() calls into one call in show_cpuinfo()

PATCH Applied SF Markus Elfring 1 participant 1 message Jan 12, 2018 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 score-setup: Combine two seq_printf() calls into one call in show_cpuinfo()

From: Markus Elfring <[email protected]>
Date: Fri, 12 Jan 2018 16:36:35 +0100

Some data were printed into a sequence by two separate function calls. Print the same data by a single function call instead.

This issue was detected by using the Coccinelle software.

---
 arch/score/kernel/setup.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/score/kernel/setup.c +1 -3
index f3a0649ab521..627416bbd0b1 100644
@@ -124,9 +124,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 {
 	unsigned long n = (unsigned long) v - 1;
 
-	seq_printf(m, "processor\t\t: %ld\n", n);
-	seq_printf(m, "\n");
-
+	seq_printf(m, "processor\t\t: %ld\n\n", n);
 	return 0;
 }
 
Signature · 1 line
2.15.1