Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755280AbeAMQ0e (ORCPT + 1 other); Sat, 13 Jan 2018 11:26:34 -0500 Received: from mout.web.de ([212.227.15.14]:53388 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998AbeAMQ0c (ORCPT ); Sat, 13 Jan 2018 11:26:32 -0500 To: kernel-janitors@vger.kernel.org, Andrew Morton Cc: LKML From: SF Markus Elfring Subject: [PATCH] fs/proc: Use seq_putc() in show_console_dev() Message-ID: <04fb69fe-d820-9141-820f-07e9a48f4635@users.sourceforge.net> Date: Sat, 13 Jan 2018 17:26:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bVLtLrhLF1i0DQg6222/0rj45vvrhZYtHp9KoDxwiA3ZsPhJI8m iksnxAwKV2C+dq9QnDlvAqON5KtKO2dreSPyGOxqA7TRxIIKXp4W84DEvkN4R9tMFesskwJ Q7xuJ11W3H7ZqvFsWU1dyfNX3Jc4DL3UGbc0Yy3o3sCMtkz3prlKiz+M0N8co2gkvzV3Cy2 /6m/lOF701gSWHvY/GNtw== X-UI-Out-Filterresults: notjunk:1;V01:K0:1OIaQUfm3K0=:VrkqZjs6a4EzJ45ElI0xRl 7tciWqizSoeG6Z9lKcLyAKa+JfMvFBpji+8zdAjCoUgjEhGgqCalJnCdewtn419cblMOYbMJa +L4xkK/uk/RQhYZUZ2Kooa42d1NnZ76DgX6DtzsS2DLtZdIWEuvwhPxRmA79PjodBaSMruJU5 Al/vEvpDBw1TiGNrOzDlshE2dwd2hwO6sXKu38Zj8fFmkLkJauYsMOy1ULXtu3pn+ZSJpCsAM iIDlZpbVsNQYYROF3TeESh+t9DSTTIuKcAnd24b6+OJuQMd4onlBxEGFkhWEZgpgVqy6dhlQk ubIisq5Ry9/MM6Z3RrwJ+VimZ2MR2q7i3UTXrymQ84sSm0M5hEnrmoJAA5uysKe3sAC6mxPjX tpdz6D0rLAfYoNU1+nMhYi1CpXNHUXXLA/siVvhsyKlbWd0fZkWEYbkZQUqGGfu3FBSWYQ8NZ 2blmHafqZortaHtI5RvD0PLUtsX9T66ghYTIZaPBuvvdT6ScjuezYS+u0zgH4vTJeicNR1iS0 ji71tWCE/FEUH37DNDwYxR5IgPqYorlo928aeWc3amb5cU2F4eYaf73U1gpzBldEc5HBuqWmU r/nc28yjo7yYhWfEXXiCjWvdCoYUGdSKiDoknSqspWjXwFoi1Ievb5IBCGAJKuQcqxeHhuwgX eRoccyf5QXATr4i5Xy6LdinhwLxNuYnhehofmKs1rOD13ldYqOTHykOKgbjO615zMuoOfSq2K /ud+G2yUcicTbVBeJmuqVwNiDQgqsY8h4u8IPHtjphdQC74aaLVkxcNQlHy+eBQO0WBNz8Wpi 49ovAmdcEYbgcjxJHe58skZQKUF7UPxxxWY2ZOopGlJStfMjrs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 17:17:59 +0100 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 --- 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"); - + seq_putc(m, '\n'); return 0; } -- 2.15.1