[PATCH 2/3] LoongArch: Delete unnecessary braces in show_cpuinfo()

From: Markus Elfring

Date: Thu Jun 04 2026 - 11:11:38 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Jun 2026 16:16:43 +0200

Do not use curly brackets at one source code place
where a single statement should be sufficient.

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 cc1b7a96bb0f..bc1cd400025c 100644
--- a/arch/loongarch/kernel/proc.c
+++ b/arch/loongarch/kernel/proc.c
@@ -96,10 +96,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
seq_puts(m, " lbt_mips");

seq_printf(m, "\nHardware Watchpoint\t: %s", str_yes_no(cpu_has_watch));
- if (cpu_has_watch) {
+ if (cpu_has_watch)
seq_printf(m, ", iwatch count: %d, dwatch count: %d",
cpu_data[n].watch_ireg_count, cpu_data[n].watch_dreg_count);
- }

seq_puts(m, "\n\n");

--
2.54.0