arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()
authorMarkus Elfring <[email protected]>
Tue, 6 Feb 2018 23:40:56 +0000 (15:40 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:47 +0000 (18:32 -0800)
Some data were printed into a sequence by two separate function calls.
Print the same data by a single function call instead.

This issue was detected by using the Coccinelle software.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Markus Elfring <[email protected]>
Cc: Chen Liqin <[email protected]>
Cc: Lennox Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/score/kernel/setup.c

index f3a0649ab5217ac5f87b83580723dfda40fff3de..627416bbd0b174db081448ea273b1e6d5aaa9332 100644 (file)
@@ -124,9 +124,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 {
        unsigned long n = (unsigned long) v - 1;
 
-       seq_printf(m, "processor\t\t: %ld\n", n);
-       seq_printf(m, "\n");
-
+       seq_printf(m, "processor\t\t: %ld\n\n", n);
        return 0;
 }