[PATCH 3/3] LoongArch: Combine two seq_puts() calls in show_cpuinfo()
From: Markus Elfring
Date: Thu Jun 04 2026 - 11:15:08 EST
From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Jun 2026 16:33:07 +0200
Put data into a sequence by a single seq_puts() call instead of two.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
arch/loongarch/kernel/proc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/loongarch/kernel/proc.c b/arch/loongarch/kernel/proc.c
index bc1cd400025c..36df3c7f6990 100644
--- a/arch/loongarch/kernel/proc.c
+++ b/arch/loongarch/kernel/proc.c
@@ -57,9 +57,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
seq_puts(m, " loongarch32s");
if (isa & LOONGARCH_CPU_ISA_LA64)
seq_puts(m, " loongarch64");
- seq_puts(m, "\n");
- seq_puts(m, "Features\t\t:");
+ seq_puts(m, "\nFeatures\t\t:");
if (cpu_has_cpucfg)
seq_puts(m, " cpucfg");
if (cpu_has_lam)
--
2.54.0