From: SF Markus Elfring Date: Tue, 6 Mar 2018 00:21:26 +0000 (-0800) Subject: memory-EMIF: Use seq_putc() in emif_regdump_show() X-Git-Tag: v4.17-rc1~103^2~12^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d363a88b31fc03268eada426f5940ef685b8df21;p=thirdparty%2Fkernel%2Flinux.git memory-EMIF: Use seq_putc() in emif_regdump_show() 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 Signed-off-by: Santosh Shilimkar --- diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 04644e7b42b12..2f214440008c3 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;