From patchwork Mon Jul 17 07:53:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hanyu001@208suo.com X-Patchwork-Id: 13315313 X-Patchwork-Delegate: toke@redhat.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3BD1EB64DC for ; Mon, 17 Jul 2023 07:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbjGQHxe (ORCPT ); Mon, 17 Jul 2023 03:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbjGQHxa (ORCPT ); Mon, 17 Jul 2023 03:53:30 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B28DD for ; Mon, 17 Jul 2023 00:53:29 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R4Dpt22DBzBL0tg for ; Mon, 17 Jul 2023 15:53:26 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689580406; x=1692172407; bh=jBmzA+Ot8NNeosauqxyCYei355K Xn+iPCtrHMP5yy5s=; b=QRuWS3ig5zR+9jNl4XV7QgNu/DttThhn9FH6EQAx69L OGzkrZH81a+HQPafO6wQfIzzgy5s2chDpJ8JM/CiqRiobZRZ76dSeGKXk/vdS9Hz 1sRFbbNymJXyI4i9DjXQ+nx0Ql/Lbvm2vTe1C4JPXyvbF9HQtGHBXxNGwRh+RbbG qpri9i7u7eKp8Mo0+Dcyy+GopxAANz/RWv/Y/9kaRqgRJuGzu/aS5lkbB6tLv9TM 1rJH56P5L0rvGYs79+UkwUJM47MRsewV7LDoC19ASdyt1+ulafjDoyTBSdcWxuVv KMHogvdjn1hwAGx4RXu8WffAxXH62a9UR4S5RqiQyPA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2YfrsuRdpjzq for ; Mon, 17 Jul 2023 15:53:26 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R4Dps6vRwzBHXgm; Mon, 17 Jul 2023 15:53:25 +0800 (CST) MIME-Version: 1.0 Date: Mon, 17 Jul 2023 15:53:25 +0800 From: hanyu001@208suo.com To: toke@toke.dk, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ath: ath9k: add space before the open parenthesis '(' In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <425049168ccae17c842be2dd0c53f5ff@208suo.com> X-Sender: hanyu001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch fixes the checkpatch.pl error: drivers/net/wireless/ath/ath9k/xmit.c: ERROR: space required before the open parenthesis '(' Signed-off-by: maqimei <2433033762@qq.com> --- drivers/net/wireless/ath/ath9k/xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) airtime += rate_dur * bf->rates[i].count; } @@ -2437,7 +2437,7 @@ void ath_tx_cabq(struct ieee80211_hw *hw, struct ieee80211_vif *vif, break; skb = ieee80211_get_buffered_bc(hw, vif); - } while(skb); + } while (skb); if (skb) ieee80211_free_txskb(hw, skb); diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index f6f2ab7..72f9593 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -717,7 +717,7 @@ static void ath_tx_count_airtime(struct ath_softc *sc, int i; airtime += ts->duration * (ts->ts_longretry + 1); - for(i = 0; i < ts->ts_rateindex; i++) { + for (i = 0; i < ts->ts_rateindex; i++) { int rate_dur = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, i);