Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6639569ybi; Sun, 21 Jul 2019 22:42:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7GNolI9neT3vedkhrWdDdFlPTrjrsqdU3jeNTNmvo+CU5/bxC+BVbx9pQVxcqnSQ2JLWi X-Received: by 2002:a63:5452:: with SMTP id e18mr53480698pgm.232.1563774160469; Sun, 21 Jul 2019 22:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563774160; cv=none; d=google.com; s=arc-20160816; b=L57suIyVGtTx2uTCtqTggQ3CaqBEHcol5LDiLzdadMRjdrOdXR52Ge7pLqwgMHJK+6 jso5FUAQjDiBIEv1vbiAf6cHfKrjJDuyrYLk+BvZ6DrWoGgIyJfBbLCgb5nuGl0HoYTP 1Ck5YTrJtr2j53FHYqwKS0vXp8xp3TFpPMQi/dAmrOK899vMf8ioMW5VIk0ELyvQHMMS 76C1bJ70Sdh9lurBQrl8LznkJupeyEmYa4GCWyaz7UgI0qPmRRqkzaonzfToKIEzxDiM 91qsnhKKa/dEK7aBoMNJOVL+skO90xwHDhDnuA/gUIysJ00yNvwnyMyS9Svwv2em/hvx c+kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=NgnIWBxpcqyPZBTf0zNJNtJCE+p5zqDXeOJ9tyuL7uE=; b=X/5PRfOxg7UANmUX4q9bIVRVriwXslG8rRIsOLnn/27qzOA3HzykZ3a+I8wvikvAwd rhjxXXxU/qrmIU0ypPAAxm/i9KffgCNHcVqz4hDddjl8OP0HZH6BmF21dPzuB1APnzsF GTj7fqcyVHe9MWZDSUMCv+SPu0Gg8r3/znXwdOMbpJNDk/vi3mn10CG2J10/tBBkUGJk ViqBSaxqkmPN3GhXyGo4PhZJOjdV2x0EzDcsj0/h96UVMt8VcrpiAePEiOi6m5ytZi+5 8f0dU4bjghjPFBRQr2Ev/xcuqfYYSwB3RN9tygrSgr1Ncl+eAgtzY7gsmn1dSvQnW8Qe eprw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15si9221413plk.74.2019.07.21.22.42.26; Sun, 21 Jul 2019 22:42:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbfGVFbr (ORCPT + 99 others); Mon, 22 Jul 2019 01:31:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:34966 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726534AbfGVFbr (ORCPT ); Mon, 22 Jul 2019 01:31:47 -0400 X-UUID: bc9f8d5b77e047b2aaae20c6dd95a74f-20190722 X-UUID: bc9f8d5b77e047b2aaae20c6dd95a74f-20190722 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1246995080; Mon, 22 Jul 2019 13:31:20 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 22 Jul 2019 13:31:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 22 Jul 2019 13:31:18 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Roy Luo , YF Luo , Yiwei Chung , Sean Wang , , , Ryder Lee Subject: [PATCH 3/5] mt76: mt7615: fix some checkpatch warnings Date: Mon, 22 Jul 2019 13:31:13 +0800 Message-ID: <715d14690b66a126b22b867e99230d470afac2eb.1563772403.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This fixes the following checkpatch.pl warning: WARNING: Improper SPDX comment style Fix blank lines. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 5 +++-- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c index ed605fcc99f9..2618248946a1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: ISC */ +// SPDX-License-Identifier: ISC #include "mt7615.h" diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c index b3e8ee06a783..8f9a2bb68ded 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -508,7 +508,6 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta, rates[i].idx--; } - } val[0] = mt7615_mac_tx_rate_val(dev, &rates[0], stbc, &bw); @@ -586,6 +585,7 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta, sta->rate_count = 2 * MT7615_RATE_RETRY * n_rates; sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; } + int mt7615_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, enum mt76_txq_id qid, struct mt76_wcid *wcid, struct ieee80211_sta *sta, @@ -725,8 +725,9 @@ static bool mt7615_fill_txs(struct mt7615_dev *dev, struct mt7615_sta *sta, sta->rate_probe = false; } spin_unlock_bh(&dev->mt76.lock); - } else + } else { info->status.rates[0] = rs->rates[first_idx / 2]; + } info->status.rates[0].count = 0; for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index e57b51290c61..5fd162be3654 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -1646,5 +1646,3 @@ int mt7615_mcu_set_rx_ba(struct mt7615_dev *dev, return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_WTBL_UPDATE, &wtbl_req, sizeof(wtbl_req), true); } - - -- 2.18.0