From patchwork Mon May 8 13:04:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9716179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 594F960364 for ; Mon, 8 May 2017 13:05:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53BEB252D5 for ; Mon, 8 May 2017 13:05:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4891526B39; Mon, 8 May 2017 13:05:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F419026861 for ; Mon, 8 May 2017 13:04:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbdEHNEq (ORCPT ); Mon, 8 May 2017 09:04:46 -0400 Received: from mout.web.de ([217.72.192.78]:50100 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754037AbdEHNEp (ORCPT ); Mon, 8 May 2017 09:04:45 -0400 Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MA5if-1dIwk03spF-00BNoR; Mon, 08 May 2017 15:04:38 +0200 Subject: [PATCH 1/3] Input: Use seq_putc() in input_seq_print_bitmap() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: <85bf6874-661a-9cab-1e9b-ea9e312b94de@users.sourceforge.net> Message-ID: <7f53f603-1069-1e7a-67b6-78f8009aa0c1@users.sourceforge.net> Date: Mon, 8 May 2017 15:04:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <85bf6874-661a-9cab-1e9b-ea9e312b94de@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:oU5U6QqaI3kCpKkm9HlNXay4l6oTa7mM7bHL2AShBwsal/YuHv/ BgqyGDVl7DnJWRNhIr1jZ1IxY2LMFut28CAhJgIwF2vQTq6V5MxwIZhVMr5Uualy9aJOmPb hpf4AVr6scwWnLImv3SO+oaNSq6iVkCddg/wn3syrciDgUqhfnixdKxpJaxGgldCv7+XLQU 6HohthMYxVY10ZUZGt9qg== X-UI-Out-Filterresults: notjunk:1; V01:K0:oVdjA/Hw0iQ=:ABCBdwcXJgtVJZABuNkpIK rzXq49OII9+7XX4dRw653dLXVo42a/p18+eVa9fZoD6QlWUzmafrBMjFVNVSSsXULB3nOYk7M eQaM7SoQnKh6ZEjAd8QePP8oKfoL1mA5rl8T3oU/NrmNHDseKUfpTGBse6/9+WBeCgh3ddaoO Jwrfsqv7GXPEdaJEb9Uif1SAH2l9yf+e0lSptu0wIGz/CNVbtBhYtFXFmsJNd7/oi03fsDOC3 IP1NTmDiL/Z5/e+hsF5CbDTV5JQ3s1lJ/Eff2nVEI0l6W14PML7/k8r8yV7rBioQ6F1Qoj9y9 Srj5XkclLgCTF3QAZrWV9rfzc+2Fuh1KucO6jUJ8Op8yVTsoJct8lpm5PQRzfSTiptTX4xJu7 hRUcrHUlqYpSGHtPAYX5VrAnvVBRUyKOge4hFhGtS/f+hrprGcUj3N7uz1FYsqv3q84OfEhL/ DRVi0fa/jUcC6YHVFx/Ira/ut4BIFnYVub7OzwexHSgcamzKLrQFcW7cUanI6kCNYd4YfndMQ 9ZD1DfAZo7TQr1/DQFo84qKwlbN0RXbcsnPy/e7oVax8VcYll3QleyTiC0hZ0JaEKP+7lP3WV 2zt8/ZWxft5IKlFLlM3diZjcAxvg+OJwuzv/IGL74lXLdatbUkIUvz9KnnnLKYUPlumncGBVp PdwLMFhmoEym/8dv2jdo/ulAWwn4mIDZvUC2b8Jua8pcrVFMTy1dFh1uunPO8C7OT9DtLwRlX fYKm+IcciCQugD2xcen6bYY7G1IYzEFr6tpFWOwYmdssyO3dsOCLwJsoXNx5XAWB9j6k3zQYW fTgc3Mb Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 14:20:18 +0200 A single character 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 --- drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 067d648028a2..0d204b841575 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1126,7 +1126,7 @@ static void input_seq_print_bitmap(struct seq_file *seq, const char *name, * If no output was produced print a single 0. */ if (skip_empty) - seq_puts(seq, "0"); + seq_putc(seq, '0'); seq_putc(seq, '\n'); }