arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/b0f7e32ca1a8748e8f7f355c9e31c450c2bfad2f
Commit:     b0f7e32ca1a8748e8f7f355c9e31c450c2bfad2f
Parent:     68e34f4e89e2bb64d53e77a18e0cfddc3c7f24e9
Refname:    refs/heads/master
Author:     Markus Elfring <[email protected]>
AuthorDate: Tue Feb 6 15:40:56 2018 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Tue Feb 6 18:32:47 2018 -0800

    arch/score/kernel/setup.c: combine two seq_printf() calls into one call in show_cpuinfo()
    
    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 | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/score/kernel/setup.c b/arch/score/kernel/setup.c
index f3a0649ab521..627416bbd0b1 100644
--- 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");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.