Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965507AbeAMJer (ORCPT + 1 other); Sat, 13 Jan 2018 04:34:47 -0500 Received: from mout.web.de ([212.227.15.3]:52930 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965425AbeAMJep (ORCPT ); Sat, 13 Jan 2018 04:34:45 -0500 To: kernel-janitors@vger.kernel.org, Santosh Shilimkar Cc: LKML From: SF Markus Elfring Subject: [PATCH] memory-EMIF: Use seq_putc() in emif_regdump_show() Message-ID: <1762e245-a88d-f82e-57e8-a4dab179ca03@users.sourceforge.net> Date: Sat, 13 Jan 2018 10:34:40 +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:mKWgCMxzrkCp8V8J2eVFX+4s6y0HhZ4bLmNaJyl0WGZuwCEboUm Bkswt1WmhJSIhtr5JJ/ebULCUoA259Zpn0j8Zoq7SoHmI6SvUWDjIQKNJ14IAcgOGKulXV/ e8RV2EagJnmz51fIxVSI9K0PDZkMPqo11uP5Md1c/bciwJ+0vvyDH0K9kPMZVsD1PbAIiKn hAa4m87FsaZx8HxCxWcfQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:xjtiatFPQxk=:kzCbIfp7lTftXCI+hMWivm dbJH4Qn2qsuBz0GkzpoFvLuqxAJZcxBpyFlsL8sfiw46xtWTBLJahvXixvhQzG2r5Tw9G1NJE zHep1xsC/2uWbKMBYC1OSXzMi8NQGNyDXcX9z4WKUjNc8B0EhB2aiRlYPCusYvSFUC6Egi0LL P/4Y/ZTyxiZ2goFZd5i1d5i3FiaxTPcLamBWQO4alZUxze2Skn63PrfcM7e1IKgqJ8eiis5yO GsI3Li8KqMCrr3hJHjldpbc/+bBU5iC0Ua6upeUUWGxH5rO6esgpKUHXrW/a4lWSd9US8RJ5g bDIcIhWim9BpjcZUSovRhRIzUqsd46k1w2uRraLd3yelUHgX6VmSbMYOc/NoGEp9qUo1dOz67 M+WvjkTy6gAQtJDMRhGcg3NX2B8OsncIR8dKpXgb/ELDt9IsvnYMS5OTYV8807i/Errg5eJhf /U9d4vJdkP5KLOJMQqxR04ZUcEyXud1uByo/4WgDrla6YqBr7UQzYDPIaaw8xxIX/W1vMZGR8 aoRrJz6O1bf/B+jwiOgGGwAArQoN+jiY53g6fIrbKgKwpL+uiBudeypNd6O7ATsapQWrgLik6 KWmN6n+eUAZU8FzWRlIJUyS0mtYW5ZXXC/UXMLzB14RNC6TQcZgRRTkArOaDimcf1Q2wslRnt sJRkAPCRWSiYqEb8zEeQUVBbyYMge/X6pU3ZIkjdvm+nM741Ey1dwvVFqBVTrnxzx6dTr0iR1 cXsyRnYgDqMagdzcm+w2mPYqz9Isvkj3ctw1Ax+6uZZkxW79xqJUwoa1HaBkB6N+4f5cjxyic Ya3yrvisW0qyyod+WjwCwS16Iq21C1eeqbKSHAmXpSMxma79f8= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 10:24:03 +0100 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/memory/emif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 04644e7b42b1..2f214440008c 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -127,7 +127,7 @@ static int emif_regdump_show(struct seq_file *s, void *unused) for (i = 0; i < EMIF_MAX_NUM_FREQUENCIES && regs_cache[i]; i++) { do_emif_regdump_show(s, emif, regs_cache[i]); - seq_printf(s, "\n"); + seq_putc(s, '\n'); } return 0; -- 2.15.1