From 390e10464db011f382dc7eb6eeda25d5b8ceccbe Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Tue, 2 May 2017 10:47:35 +0200 Subject: [PATCH] pinctrl: Use seq_putc() in pinctrl_maps_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: Linus Walleij --- drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 1653cbda6a82..7df16771fa13 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -1732,7 +1732,7 @@ static int pinctrl_maps_show(struct seq_file *s, void *what) break; } - seq_printf(s, "\n"); + seq_putc(s, '\n'); } mutex_unlock(&pinctrl_maps_mutex); -- 2.20.1