From patchwork Tue May 9 07:28:00 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: 9717133 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 F1A7D60365 for ; Tue, 9 May 2017 07:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4F412654B for ; Tue, 9 May 2017 07:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9EEB282E8; Tue, 9 May 2017 07:28:23 +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 9AFBC2654B for ; Tue, 9 May 2017 07:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752709AbdEIH2J (ORCPT ); Tue, 9 May 2017 03:28:09 -0400 Received: from mout.web.de ([217.72.192.78]:62377 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbdEIH2H (ORCPT ); Tue, 9 May 2017 03:28:07 -0400 Received: from [192.168.1.3] ([77.182.123.147]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MI5ze-1dBpJn3vTy-003rpH; Tue, 09 May 2017 09:28:02 +0200 Subject: [PATCH 2/3] ath9k: Replace four seq_printf() calls by seq_putc() From: SF Markus Elfring To: ath9k-devel@qca.qualcomm.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo Cc: LKML , kernel-janitors@vger.kernel.org References: <03575993-754d-924c-9736-2a8d19e98fa5@users.sourceforge.net> Message-ID: <1498ba8a-8776-6380-f791-669f4440cc12@users.sourceforge.net> Date: Tue, 9 May 2017 09:28:00 +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: <03575993-754d-924c-9736-2a8d19e98fa5@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:K1+C7KpDXkxUjPOBGmeci8pJGn7wQT7HZMpOLpeXVoF3KKOydFO EjCfk9am/lmDMvMNlSz8y0DWa/0U/oqtN4eHEwYvCBbRlDE13CPm39fMzPPLPB0ltR3/V36 DyXwz7Tqof2yZzFEMUxu0dufbF+MC929WC0v3v95yxBCd7CH73zPzfHu7zAkk5aafUQL38x 4M3QsWmrKfZ4n59dFuKiA== X-UI-Out-Filterresults: notjunk:1; V01:K0:YNnIjkkBhe8=:ItVuwRBIGbKI9Xl3TfIqJh 2rDJPNCauENf/F/QsM5f+qhhREALr+yZivi76iUXbIQgcki0UqIb57FPaeFrHc93KGRfyw5dp ZK4aLxv1/Yhnf4G6EnJ3oH9uNIS0Az1SY5REZAoNn+vdwnopxTArpYUARV3a6bgDGY0UWxgoZ eJI4qlIhY0L+/ycZsYo9aR7UspShqasloUZ40AlTMIrkfye1IKwIt2TS6s4nRgUB1sGOffc1R 6ENKg6OziyXF3hryZKVSy4tQlGAn8Cg+JaWuJWOnUJD0qGc8Zt0i6ANnSkmLhNDxNedWRK5Rm n8bhyZtlANvaURDMXrMhXAnyz1424/DQ7iRSfiy7wQnJuynt2Qk3mUZO3N8ToXsToRC+o5HLq m45MmTrOYr2VJxxEAJaMw5fVKXSZDHXJzq7ep/C/4tLiKQ3pxDLGx5BLBnbCXf7l4fUcz+0fj 7/JPfRX+Q/hazJEUpp6wd2cX9+aLh45HTxowJ9ZDa6kVQTC49hyO7nCy7+je4iePRaFFttqHm hz8kqLMWLtb1s7sNg8w5Yo/+rkyO4+nrI74yrOCj7T5DHtiCMVw3AfIkMYx1WtJcQrE/Gkrai YCsvfJECrB4cQx0hT0siWQ+goW9sYBtr2CvpDiBDa5moyIvxk3TfDVCEU9M01TroD/xtiAs4C WYOGmsob7CzUmr9TrmB9whqyMFxmYvB7nqiUuNTKZFO9KQK3O09i17XcczsNxzRAnPJAwl2g0 V6dKad4uMK4MPKE1DW4NzKIOu3mzJ/IDoPa6ucOqtFP3ZAaUeqEvNz2RXKpAUoCYe42w47hUS qbHBgVx 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:04:47 +0200 Four 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/ath9k/debug.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 981b38a1e352..0d215598193c 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -421,7 +421,7 @@ static int read_file_dma(struct seq_file *file, void *data) for (i = 0; i < ATH9K_NUM_DMA_DEBUG_REGS; i++) { if (i % 4 == 0) - seq_puts(file, "\n"); + seq_putc(file, '\n'); val[i] = REG_READ_D(ah, AR_DMADBG_0 + (i * sizeof(u32))); seq_printf(file, "%d: %08x ", i, val[i]); @@ -702,8 +702,7 @@ static int read_file_misc(struct seq_file *file, void *data) if (rxfilter & ATH9K_RX_FILTER_CONTROL_WRAPPER) seq_puts(file, " CONTROL_WRAPPER"); - seq_puts(file, "\n"); - + seq_putc(file, '\n'); reg = sc->sc_ah->imask; seq_printf(file, "INTERRUPT-MASK: 0x%x", reg); @@ -723,8 +722,7 @@ static int read_file_misc(struct seq_file *file, void *data) if (reg & ATH9K_INT_BB_WATCHDOG) seq_puts(file, " BB_WATCHDOG"); - seq_puts(file, "\n"); - + seq_putc(file, '\n'); i = 0; ath_for_each_chanctx(sc, ctx) { if (list_empty(&ctx->vifs)) @@ -981,7 +979,7 @@ static int read_file_dump_nfcal(struct seq_file *file, void *data) seq_printf(file, " %d\t %d\t %d\t\t", i, h[i].privNF, nread); for (j = 0; j < nread; j++) seq_printf(file, " %d", h[i].nfCalBuffer[j]); - seq_puts(file, "\n"); + seq_putc(file, '\n'); } return 0;