Skip to contentSkip to conversation

arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()

PATCH New [email protected] 1 participant 1 message Feb 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 84/114 arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()

From: Markus Elfring <[email protected]>
Subject: arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()

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 renamed from arch/score/kernel/setup.c~score-setup-combine-two-seq_printf-calls-into-one-call-in-show_cpuinfo +0 -2
diff -puN arch/score/kernel/setup.c~score-setup-combine-two-seq_printf-calls-into-one-call-in-show_cpuinfo arch/score/kernel/setup.c
@@ -124,9 +124,7 @@ static int show_cpuinfo(struct seq_file
 {
 	unsigned long n = (unsigned long) v - 1;
 
-	seq_printf(m, "processor\t\t: %ld\n", n);
-	seq_printf(m, "\n");