Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5290812pxj; Wed, 26 May 2021 07:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZaeLaR7ewepVD/SogVMRiIHLuugOUuV0IIuSI1VFAPBXK6kho7NBTVXb06v8QZiJ7kd7l X-Received: by 2002:aa7:c54a:: with SMTP id s10mr37051707edr.132.1622038716090; Wed, 26 May 2021 07:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622038716; cv=none; d=google.com; s=arc-20160816; b=JdFq/5oiQjtdWpwnScn0BmF7Wpc+UukKX0Rs6+Xnr0amaJYUcmpUx6vsA8g5sfYxOd MHFVPslWGOPvi0lInGOTcSHRv0eWUVE1EKNtToavWeAro2D/9tyydfxiJeTPpLqN0n6N Wdgx04TUpyOoLtIyd+kFJoFLTE9UgyWooFHONpxtA6Ftzrcj8sPWZTpYJvjKkNk3wN87 +XJuXMexKAfEVas4oPqzaO1i6p730QKQGmNx44RZyH4ExN73U3HXTsfPxdV0ciPbCrpn e2shp/9w6XwqHsP37NhdWtA8KF85hLGuyv1OrUUQO3yWWEijXfLY9lsfYFR+kR8nHik2 xgGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hFo/vC5qc42YvTWiiuhbgpKdmLvhQQZvzeKjXt3Nszc=; b=Ix+vIUMs2ovWcc70aTywDYMov1ygzke9u7cgVa5OlFb0DnzVarXfL3H/rINAkMvRzJ qBN33FUkfJuHW9A2fjE0VKLg9URrJEQRIGHcsCV2oWcxmXAI+mQwzA33Kidfh4B5+4WN TO3twkVMRgfhOy209aaPyrF9IcVB638sEpP7wlLq4JM4byuzIu+24ATeta/bLr92Z/0y fF0uga3FrqCR1TCWSCtaoJ0/nbh9YfPh1AvfSmsULR9swUvoeTzuEQ4E+qa96eWgdfBa yeKA6TcFMAUz7h+9xP6LcfjPvgXNIQJfHnsAobkvjO4Ut0HnxXPJukJ/QQMUAxym5hP5 cRNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si23193202edj.318.2021.05.26.07.18.12; Wed, 26 May 2021 07:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234432AbhEZOTU (ORCPT + 99 others); Wed, 26 May 2021 10:19:20 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:4016 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233656AbhEZOTT (ORCPT ); Wed, 26 May 2021 10:19:19 -0400 Received: from dggems701-chm.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FqtJW6pVCzmZ6j; Wed, 26 May 2021 22:15:23 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggems701-chm.china.huawei.com (10.3.19.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 26 May 2021 22:17:44 +0800 Received: from huawei.com (10.175.103.91) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 26 May 2021 22:17:44 +0800 From: Yang Yingliang To: , , , CC: , Subject: [PATCH -next] ath10k: Fix W=1 build warning in htt_rx.c Date: Wed, 26 May 2021 22:22:19 +0800 Message-ID: <20210526142219.2542528-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following W=1 build warning: drivers/net/wireless/ath/ath10k/htt_rx.c:1790:7: warning: variable ‘more_frags’ set but not used [-Wunused-but-set-variable] 1790 | bool more_frags; | ^~~~~~~~~~ Fixes: a1166b2653db ("ath10k: add CCMP PN replay protection for fragmented frames for PCIe") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 7ffb5d5b2a70..adbaeb67eedf 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -1787,7 +1787,6 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, struct ath10k_peer *peer; union htt_rx_pn_t *last_pn, new_pn = {0}; struct ieee80211_hdr *hdr; - bool more_frags; u8 tid, frag_number; u32 seq; @@ -1805,7 +1804,6 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, last_pn = &peer->frag_tids_last_pn[tid]; new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype); - more_frags = ieee80211_has_morefrags(hdr->frame_control); frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG; seq = (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4; -- 2.25.1