projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e34f4
)
arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()
author
Markus Elfring
<
[email protected]
>
Tue, 6 Feb 2018 23:40:56 +0000
(15:40 -0800)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/arch/score/kernel/setup.c
b/arch/score/kernel/setup.c
index f3a0649ab5217ac5f87b83580723dfda40fff3de..627416bbd0b174db081448ea273b1e6d5aaa9332 100644
(file)
--- a/
arch/score/kernel/setup.c
+++ b/
arch/score/kernel/setup.c
@@
-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;
}