From patchwork Tue Feb 7 20:01:18 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: 9561031 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 266EA6047A for ; Tue, 7 Feb 2017 20:01:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 195842848D for ; Tue, 7 Feb 2017 20:01:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DF8528494; Tue, 7 Feb 2017 20:01:34 +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 AD7242848D for ; Tue, 7 Feb 2017 20:01:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752885AbdBGUBc (ORCPT ); Tue, 7 Feb 2017 15:01:32 -0500 Received: from mout.web.de ([212.227.17.12]:64003 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755340AbdBGUBb (ORCPT ); Tue, 7 Feb 2017 15:01:31 -0500 Received: from [192.168.1.2] ([78.49.4.3]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MBCJd-1clKJ31o9t-00AGaH; Tue, 07 Feb 2017 21:01:20 +0100 Subject: [PATCH 18/18] HID-picoLCD: Use seq_puts() in picolcd_debug_reset_show() To: linux-input@vger.kernel.org, Benjamin Tissoires , =?UTF-8?Q?Bruno_Pr=c3=a9mont?= , Jiri Kosina References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <7f443463-bbdd-8f7b-581e-d0c7da352ae8@users.sourceforge.net> Date: Tue, 7 Feb 2017 21:01:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:rct2wf7BE2OlCybP7J/sQA01KAoMHKH5ZopdbBeRTDKPqxOxQKZ MX1jLsBOITmwDnI2wGfpbUHG69yePG+6qg6m1oETse+4t5tZ1DmU4SNMcKum8Fu+nfQTrL7 RcRS5tjPaunXHJe/DnPehkQgk6kiJ+hpZvfIcUGipjGuNe+DWgCtK/LBLt8WtB8gJOl5GK7 ab35HsnAdFb1eCLa97gdQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:jbX0BSrItFQ=:ro5jGxhp2nU3yu7GhODR/S tCMSIGL1GeTCA0a1vaLSl138MUnkhT5CCE6jnIQShn1rPHOgv37Qu4LZX8WsZ8+w7mjvrUPzK QCp+BqtHi3Y2BJHv6JEw/vY7Fqr2adTMyf+wkZ1soI65mtmjqfrDB51f9aeP7WoVUthZBIkGq hZ6FtasWrOVUsYvDVbql3j3wbt5ppmtBbiiq/jeiYVjPkF0KynWC+RRfmIJHVpF4pbWRzTqEa c7BmPE/SGjgFaG5IfJVWJgvVObrw/j3VLoYERNgA/dwOE2Ijfr7W7T4OApVW+cu6dwUzBbVm6 6LfGq9dX31RnUxM0ZKhUT79uC8W+N9mvg6fIn9GCR4+39ztJI3gAB664UqyTLle+dtwXuKJJO yVvUK6HxRn2kc2UN2KQAopTFEYGz3UPMFRKmane3Jw/0KMKqy21KKLXyJRPDAoifvti3Qvp13 G7WSCc/eQnvDCvLmkOPaxpbbAS9Qdg5eBPOypb+Y0qUzQA97Av6l14hD+HHuUu5LmzIQcX7Q2 u2n57Kwk8Cq70vYvK+HE2lB/WD3CpvyQHfxa5aSPDGygSC1Or5baSi7XAOohOBTeSTiSZkPV9 jJGFcRhTSt5paKyXX2yiB7oALitr7nr0w+CBwF/qkfV5tPn6/YM/CFnV8iMrTJtRjUA93LhIt qGRgStsPVoPVL1v2UGVGMxnKk8rExdcrPmAYxHkSv4zIQpxctFa9Rv1FTRve4WLHwiR6GQrAG 8ua50x7WzFHMNdcvhpbwzLszrm6TdoVdbny+gvuSwvEqC2SbOMz8kDko9hPYZZpddygzReN8v rPvwHy8 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: Tue, 7 Feb 2017 20:14:16 +0100 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/hid/hid-picolcd_debugfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-picolcd_debugfs.c b/drivers/hid/hid-picolcd_debugfs.c index 3c13af684410..ddad570b4d9e 100644 --- a/drivers/hid/hid-picolcd_debugfs.c +++ b/drivers/hid/hid-picolcd_debugfs.c @@ -32,10 +32,8 @@ static int picolcd_debug_reset_show(struct seq_file *f, void *p) { - if (picolcd_fbinfo((struct picolcd_data *)f->private)) - seq_printf(f, "all fb\n"); - else - seq_printf(f, "all\n"); + seq_puts(f, picolcd_fbinfo((struct picolcd_data *)f->private) + ? "all fb\n" : "all\n"); return 0; }