Re: [PATCH 4/4] MIPS: kernel: proc: Delete unnecessary braces in show_cpuinfo()
From: Thomas Bogendoerfer
Date: Mon Jun 15 2026 - 06:45:29 EST
On Thu, Jun 04, 2026 at 07:56:12PM +0200, Markus Elfring wrote:
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Thu, 4 Jun 2026 19:15:15 +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/mips/kernel/proc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
> index 42430c7f0acf..2c50b0b53be1 100644
> --- a/arch/mips/kernel/proc.c
> +++ b/arch/mips/kernel/proc.c
> @@ -151,10 +151,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
> seq_puts(m, " loongson-ext2");
> seq_putc(m, '\n');
>
> - if (cpu_has_mmips) {
> + if (cpu_has_mmips)
> seq_printf(m, "micromips kernel\t: %s\n",
> str_yes_no(read_c0_config3() & MIPS_CONF3_ISA_OE));
> - }
>
> seq_puts(m, "Options implemented\t:");
> if (cpu_has_tlb)
> --
> 2.54.0
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]