]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: kernel: proc: Use seq_putc() calls in show_cpuinfo()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 4 Jun 2026 17:12:11 +0000 (19:12 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Jun 2026 10:19:15 +0000 (12:19 +0200)
Single characters should occasionally be put into a sequence.
Thus use the corresponding function “seq_putc”.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/proc.c

index 8f0a0001540c7bcd48344146650c0ad2975e2d66..261b41ef3f5a562dd814f3edd01576b77a49a787 100644 (file)
@@ -79,7 +79,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
                for (i = 0; i < cpu_data[n].watch_reg_count; i++)
                        seq_printf(m, "%s0x%04x", i ? ", " : "",
                                cpu_data[n].watch_reg_masks[i]);
-               seq_puts(m, "]");
+               seq_putc(m, ']');
        }
 
        seq_puts(m, "\nisa\t\t\t:");
@@ -150,7 +150,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
                seq_puts(m, " loongson-ext");
        if (cpu_has_loongson_ext2)
                seq_puts(m, " loongson-ext2");
-       seq_puts(m, "\n");
+       seq_putc(m, '\n');
 
        if (cpu_has_mmips) {
                seq_printf(m, "micromips kernel\t: %s\n",
@@ -301,7 +301,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
        raw_notifier_call_chain(&proc_cpuinfo_chain, 0,
                                &proc_cpuinfo_notifier_args);
 
-       seq_puts(m, "\n");
+       seq_putc(m, '\n');
 
        return 0;
 }