From patchwork Tue May 9 07:50:34 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: 9717155 X-Patchwork-Delegate: kvalo@adurom.com 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 8D4E560237 for ; Tue, 9 May 2017 07:51:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79B9E22A68 for ; Tue, 9 May 2017 07:51:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CEE526E78; Tue, 9 May 2017 07:51:15 +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=unavailable 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 ED97824B5B for ; Tue, 9 May 2017 07:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752885AbdEIHuv (ORCPT ); Tue, 9 May 2017 03:50:51 -0400 Received: from mout.web.de ([217.72.192.78]:49358 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbdEIHut (ORCPT ); Tue, 9 May 2017 03:50:49 -0400 Received: from [192.168.1.3] ([77.182.123.147]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MPHC8-1d3a4R24rw-004V5D; Tue, 09 May 2017 09:50:35 +0200 To: wil6210@qca.qualcomm.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo , Maya Erez Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] wil6210: Replace five seq_puts() calls by seq_putc() Message-ID: <64747f85-e373-a0ff-b6dc-70cdfe35f71a@users.sourceforge.net> Date: Tue, 9 May 2017 09:50:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K0:L14Yp/cIMItvlNt8Cdo4X/N7K/CTaWby9FOLhU3qqSaoSTPoQhk gvhnANfZvBOL0d82CI8uubgWqKDZ6Ox5ZU4t4YUp4pNfPR/RUJM/KO8+vYA3ZAONlwkhtrz ILx5w+GIhPHCuC4F9e85D9jK8BY4HOYXSfqnxYtVQO+p1njHEhJW44/aTIZtpLOXNH4fxXM +XJvC5OPIeoxmpiev4Giw== X-UI-Out-Filterresults: notjunk:1; V01:K0:GhiPHiTP1v0=:jOWYg9G/W/luGykeKLjzLq IEIwdAtU/dHmGvHaR9YDKr249jsrcmIAAf9n3ppuJagfeR/3V1bY9Dxc+9tDJ6qW0Wlp3nwjt cGBHZ7M1wEcO/a/FXrXydoAaIgtKSWwfkKP03jwAMoLSpzvkf99T0Q2CVC+0vtcCJdwvF8qzO Ftayvcz9rfmTWK82k37fpSZCxU9FpqhsczN7Pj2PzMF5C4w6YCxsN4jBtgbd4SNYhaA2gmRPu 5WHZGIWVkXfZv6LlGmToxnaB8DTf3ZuP2ANWqIrq+fkbrHLFRxpYYH2CVaSXC6F33kw9VpKoi wiUvYWsienRzfTP0OeeEfEJZRnf6kwpWeEY2vjyOpDEgeoNMB6B+etUAn1s5Gl5RJbspqlrj+ WvpHUccYPvNJNvm6SFxG8wFGEqevutcxR0GWddbmDe04SbPBmI1NHpG6qKQVkGIcuepCkqyXM uwc8J4qsSRDH1PqweDRwVT6vDjqLx/e7AiYmBjgJUVYKUnn5VDiJc881Ma3DLhijLupp3uxon 5v7ipUGqdLLGr5y9Ba+dZ6D0pRqGquHXAy/7nrIxnfK0yHixRoPJbMukKv/JLCVyPWz5O4KX6 98Dd+tz/mawdgb7rzVKsoKybVL3LSL/H9Em7FemrnVKd6XhrD0BjDmrl7/ltgAbYuc7o+xuMh DPFPxBMhllmt/IzTdqn+WY53zl28iBFwR0yCJUKX1kl9/IWRhHVhh05XMXlRJA/cWHb7ksLJ7 jf9iN7PIwqkIMkmduteOQF2g+yWZ85PLCDbBmU+0AgrY74E0QxUZtENB7U9NgJdKImfi8+tSk uSS6IRV Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 22:22:04 +0200 Five single characters (line breaks) 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/net/wireless/ath/wil6210/debugfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 5648ebbd0e16..90118d286fb9 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -76,11 +76,11 @@ static void wil_print_vring(struct seq_file *s, struct wil6210_priv *wil, volatile struct vring_tx_desc *d = &vring->va[i].tx; if ((i % 128) == 0 && (i != 0)) - seq_puts(s, "\n"); + seq_putc(s, '\n'); seq_printf(s, "%c", (d->dma.status & BIT(0)) ? _s : (vring->ctx[i].skb ? _h : 'h')); } - seq_puts(s, "\n"); + seq_putc(s, '\n'); } seq_puts(s, "}\n"); } @@ -233,7 +233,7 @@ static void wil_print_ring(struct seq_file *s, const char *prefix, wil_seq_hexdump(s, databuf, len, " : "); } } else { - seq_puts(s, "\n"); + seq_putc(s, '\n'); } } out: @@ -1366,7 +1366,7 @@ static void wil_print_rxtid_crypto(struct seq_file *s, int tid, seq_printf(s, " [%i%s]%6phN", i, cc->key_set ? "+" : "-", cc->pn); } - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static int wil_sta_debugfs_show(struct seq_file *s, void *data) @@ -1423,7 +1423,7 @@ __acquires(&p->tid_rx_lock) __releases(&p->tid_rx_lock) mcs++) seq_printf(s, " %lld", p->stats.rx_per_mcs[mcs]); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } }