From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sun, 07 May 2017 17:13:59 +0000 Subject: [PATCH 1/4] s390/cache: Combine two function calls into one in show_cacheinfo() Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-s390@vger.kernel.org, =?UTF-8?Q?Christian_Borntr=c3=a4ger?= , Heiko Carstens , Ingo Molnar , Martin Schwidefsky , Paul Gortmaker , Peter Oberparleiter , Peter Zijlstra , Sascha Silbe , Vegard Nossum , Viktor Mihajlovski Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Sun, 7 May 2017 17:53:31 +0200 A bit of data was put 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/s390/kernel/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c index c8a83276a4dc..9e9752ce3233 100644 --- a/arch/s390/kernel/cache.c +++ b/arch/s390/kernel/cache.c @@ -82,8 +82,8 @@ void show_cacheinfo(struct seq_file *m) cache->disable_sysfs ? "Shared" : "Private"); seq_printf(m, "size=%dK ", cache->size >> 10); seq_printf(m, "line_size=%u ", cache->coherency_line_size); - seq_printf(m, "associativity=%d", cache->ways_of_associativity); - seq_puts(m, "\n"); + seq_printf(m, "associativity=%d\n", + cache->ways_of_associativity); } } -- 2.12.2