fs/proc/consoles.c: use seq_putc() in show_console_dev()

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/4bf8ba811ac1102d7de6f73af3b9f323463e16c0
Commit:     4bf8ba811ac1102d7de6f73af3b9f323463e16c0
Parent:     93ad5bc6d4addb74e30d421cd3ba5249c961fb3e
Refname:    refs/heads/master
Author:     Markus Elfring <[email protected]>
AuthorDate: Tue Feb 6 15:37:34 2018 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Tue Feb 6 18:32:44 2018 -0800

    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.
    
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Markus Elfring <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
---
 fs/proc/consoles.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/proc/consoles.c b/fs/proc/consoles.c
index 290ba85cb900..a8ac48aebd59 100644
--- a/fs/proc/consoles.c
+++ b/fs/proc/consoles.c
@@ -55,8 +55,7 @@ static int show_console_dev(struct seq_file *m, void *v)
 	if (dev)
 		seq_printf(m, " %4d:%d", MAJOR(dev), MINOR(dev));
 
-	seq_printf(m, "\n");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.