Skip to content

Commit 390e104

Browse files
elfringLinus Walleij
authored andcommitted
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 <elfring@users.sourceforge.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent e8c5d75 commit 390e104

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/pinctrl/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ static int pinctrl_maps_show(struct seq_file *s, void *what)
17321732
break;
17331733
}
17341734

1735-
seq_printf(s, "\n");
1735+
seq_putc(s, '\n');
17361736
}
17371737
mutex_unlock(&pinctrl_maps_mutex);
17381738

0 commit comments

Comments
 (0)