[PATCH] arm64/cpufeature: Simplify data output in c_show()

Markus Elfring posted 1 patch 3 days, 18 hours ago
arch/arm64/kernel/cpuinfo.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
[PATCH] arm64/cpufeature: Simplify data output in c_show()
Posted by Markus Elfring 3 days, 18 hours ago
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 4 Jun 2026 15:13:00 +0200

Move the specification for a line break from a seq_puts() call
to a seq_printf() call.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 arch/arm64/kernel/cpuinfo.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index d50e2a9b066b..a9704a11de57 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -272,10 +272,8 @@ static int c_show(struct seq_file *m, void *v)
 			if (cpu_have_feature(j))
 				seq_printf(m, " %s", hwcap_str[j]);
 	}
-	seq_puts(m, "\n");
 
-	seq_printf(m, "CPU implementer\t: 0x%02x\n",
-		   MIDR_IMPLEMENTOR(midr));
+	seq_printf(m, "\nCPU implementer\t: 0x%02x\n", MIDR_IMPLEMENTOR(midr));
 	seq_puts(m, "CPU architecture: 8\n");
 	seq_printf(m, "CPU variant\t: 0x%x\n", MIDR_VARIANT(midr));
 	seq_printf(m, "CPU part\t: 0x%03x\n", MIDR_PARTNUM(midr));
-- 
2.54.0