From patchwork Tue Feb 7 19:54:05 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: 9561021 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 1326360236 for ; Tue, 7 Feb 2017 19:56:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04CB02848D for ; Tue, 7 Feb 2017 19:56:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDD2728490; Tue, 7 Feb 2017 19:56:43 +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 916862848D for ; Tue, 7 Feb 2017 19:56:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932228AbdBGT4F (ORCPT ); Tue, 7 Feb 2017 14:56:05 -0500 Received: from mout.web.de ([212.227.17.11]:58447 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbdBGTzQ (ORCPT ); Tue, 7 Feb 2017 14:55:16 -0500 Received: from [192.168.1.2] ([78.49.4.3]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlWCR-1c2x0y0Agp-00bNnX; Tue, 07 Feb 2017 20:54:07 +0100 Subject: [PATCH 11/18] HID-debug: Delete an unnecessary seq_printf() call in hid_dump_device() 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: Date: Tue, 7 Feb 2017 20:54:05 +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:I3Jf0urtOGthac9IUVbUaO7QbXkZcedDecNp32gAgdihcNGjHK3 k/TTNiVCSkTbZ7Bsa95YfLccsP5BcQRTvkIyOo5HLU4WzjMjxv4ozlkvOFVXBz2PgDogxFb ICPOpqCJa8gbkUiXGVM1drDKSc+9qonUZEY9ucq3+w3BGVad32hRnZG85srBwuGoaaeUWb7 gWDVX7vFyq0TpZH5SiCwQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:ecn/pkpy25Y=:/OLf5dmBZEPFDvk3iTbo2M i5VOvbcr8sI4aSeTc6hrzQGAFmYowYoKIfsenqycT7gTs8pyGhqjQYZgmCxOBWWh1RTAdymdb QJNSTxV5qkbAoPQNXhYERGeYXfjQFMRzri7RNldh3mJk6Ko8rTJe3KOSMHuxoG27bcJUCaW8z XdrnANtL1/FlBWro1PQRanqSBWeE4gAMty/vjjplceNsQVtrP8dwNanDGGZuACQ+AX+a1MtFA 1IqLbfPL5G6F879Pt6nQNQqa65vyH6H87F9EJ+yUWDSyiaZ9UAeIowFMqrCq0Z2cUgt7MIPd2 H1SYo4MbOt7xvhCu6p87gSsDyvx5YcP1p2HVaI1mpIB/OkHSlr1/cqgLd4cEKngEN4TOUOv93 Ux7UH6slU7wIRJDozY6DPJzRFVdw40T+dn4SJ7eaIf1JtQnruNzb6JrTw07yI4eZFAvaBXDDf OnPM6/yEhnPy0rnNqxW9iVf0Eds16I36/cvTj9Hhg1oKj4ymXd0HuW7Rh/fc8b6clougNjVA1 22tm17zC7VNzx1TP96boxl468IB451Bx2PTwlT/JKWccPvivJ99RPoNS/1aEtDYljjPqU8I66 FoCMGaPnVD5qelVkWSZ2qvqr7giCf4zPTf2oseBtUmjY3jxPd1qjnAmyKZ/niLhNjHmvk9s4q tHxkr3s0sIr1ImIOzazeUUN3LgniQ676UVHZLPDMi8qLTp5S2ebhsyak0IJSGO6OMjRllTM5b 8Q7doZSNlNg6/ye0uUz0yH3x8vDKqo1vfA9ujltzqnLckKubrSxJo5fF5uwx5VVCyS1aUmTPV laaKe2E 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 19:23:03 +0100 An information should be put into a sequence together with a line break. Pass the desired data in a single function call instead. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 383a4a838351..8d019d0db4f3 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -645,8 +645,7 @@ void hid_dump_device(struct hid_device *device, struct seq_file *f) seq_printf(f, "%s", table[i]); if (report->id) seq_printf(f, "(%d)", report->id); - seq_printf(f, "[%s]", table[report->type]); - seq_printf(f, "\n"); + seq_printf(f, "[%s]\n", table[report->type]); for (k = 0; k < report->maxfield; k++) { tab(4, f); seq_printf(f, "Field(%d)\n", k);