Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934152AbeALPsa (ORCPT + 1 other); Fri, 12 Jan 2018 10:48:30 -0500 Received: from mout.web.de ([212.227.15.14]:53610 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934085AbeALPs1 (ORCPT ); Fri, 12 Jan 2018 10:48:27 -0500 To: kernel-janitors@vger.kernel.org, Andrew Morton , Chen Liqin , Lennox Wu From: SF Markus Elfring Subject: [PATCH] score-setup: Combine two seq_printf() calls into one call in show_cpuinfo() Cc: LKML Message-ID: Date: Fri, 12 Jan 2018 16:48:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:DsCS312lnmVGUJ+UDTYeDLn/7ifu4LjwYdmYCsfXV4p2NRZQrnh DnXgwqoYScYm7SZuMh7SjGKqBsou0DAQv17I3CEhw8rKpbva32Q5tUyuRYNWK9vlOK3J9Ay GmcFZEMll21zNYoKa1ic6g71ZmJKqxULLmxZc+qkf/klOyLIZgIbffVt1kc3hnDwnrGqDrn dCdFskHnFBgKGYQzPP5FA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+RspTao678g=:7Vlwiylr0+o3utrLLhTSuP quX4If1wC7wNIS1pOtNWhuQuFXDmHiN0jHcowxUKGMqrZ6LYgf8MwouNFs0pXMEJpw50xo7yv kIni1hixxKmjzBpSTu80pRDTnZYkPWf9r34pvXlab+SW3gjQoXbf+0Llx4+e4VKo8gDLSIkvp OeVTptum3OsoGPvQrMwvaQRUbOdwavI7KInXKg4pOP2vgO3UW0TkzNxXU3yk311SLfusstqMH TeLlmHZZLqqPljlBs6AZx7gJAD+9fE8c2/8w/DoVJQOCMnHedBlHSswcC9nEjGq2hqc7fOeQ7 Pnaa+dmn84mNEb6xqFTb5VgcoGZxmXL2kVZbQW727KVMh4DzKft+BhbMjV0GX5Fk24XEXUgha P7/wBCkA+p50PH136TGLpUnfWjElBXYzrZHjRuBzEHjmN6/UaaVOqmbKn4joB71xrwWDD6wbB CC48NvaRttUthD7V0zovhGxZkn8e6eQ1YB9QCFN82B3RRBP3C0nMbW7x/XpTN3XdGlq07HF0e jKJhe66SEIRyfFacuVaR+cwKXlrKXzpGPUpe96c2vmPwf3qO5D7hA7jE2bFALwSZodhAxPQ/G D7Fb3qpMUOEfncWl5ftQlCTex/TWuCCoaq9JJt/XUYyh0pdu+tRW8RnhdU+4kS8ZT510yKCxT ePW7eaktMrC0lgH2J0+2eVqKTbVJj9KwaMGtqpDFLtbHU5CYb42WvJW+7RaVllQnzJxAmhA9g GhN7WCLcviCG21EHl+6SdqIYlGxB5QgtQSvUIr9pQL/W0PMx7oUOMPYDoj76Q4tM2nAIiI7Rf Mc/TqBu0kH8Mdz7IURVwxYPnvmdyY2eFyIg5xf6j3RoLMFkYtk= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Fri, 12 Jan 2018 16:36:35 +0100 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. Signed-off-by: Markus Elfring --- 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"); - + seq_printf(m, "processor\t\t: %ld\n\n", n); return 0; } -- 2.15.1