fs/proc/consoles.c: use seq_putc() in show_console_dev()
PATCH 27/114 fs/proc/consoles.c: use seq_putc() in show_console_dev()
From: Markus Elfring <[email protected]>
Subject: fs/proc/consoles.c: use seq_putc() in show_console_dev()
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 <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/proc/consoles.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/proc/consoles.c renamed from fs/proc/consoles.c~fs-proc-use-seq_putc-in-show_console_dev +0 -1
@@ -55,8 +55,7 @@ static int show_console_dev(struct seq_fif (dev)seq_printf (m," %4d:%d" ,MAJOR (dev),MINOR (dev)); -seq_printf (m,"\n" );