From patchwork Fri Oct 19 12:20:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10649333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82E8215E2 for ; Fri, 19 Oct 2018 12:50:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7016728ADC for ; Fri, 19 Oct 2018 12:50:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64AD928AE1; Fri, 19 Oct 2018 12:50:06 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7C05F28ADC for ; Fri, 19 Oct 2018 12:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=c/Z2uhRXeqhovwpPKrtHdH55xhMYSMJ2TCIFWeX6Kz0=; b=sFuUV8tSsfr9j3 4RFpygVI6q0Y1GxJuVOvzdy7p+1oDKaJ4nJ8pTIEHDK9qa4mzhKxde8JDoyMA3Fl6svtCsinqdhtI eWOOgeisKKUy1mRGNg4q/bOq+ucYz1c1u+3x5ZPYVlieGoUmR7ghgDghSZgzkfdiUvEEAB8eUYRtA FAcQadqgPGl/RAV2uTutcxQzNDFBKR5TN2q2RaZkcFzVoI9BfvYEnCTFcSPTqiPT5BmwGd8IOc6Q1 T5rM+qLnpVlfLNEeuyBiLqFn5tja6ug4N3PHlaqw6muZEJah977kodeQ/rY4ZRTqctu5I3ZnT9dMd v4ye+Bi5BSzmVZeX12cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDUE1-0005CF-Fc; Fri, 19 Oct 2018 12:49:57 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDUBE-0003uD-SV for ath10k@bombadil.infradead.org; Fri, 19 Oct 2018 12:47:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YkzhvQ+5R2ZiScA8zAKNda9JwySjtBaF+toCyHeI2hQ=; b=vLG0ScNTrVtDbTbVT9xuTeo6j7 jRCwbar3TBm4e1NmgDRyzN+hk8H620tVCT/lZZp5k9yTiHyQZgFI4av/vecxo2BR+1Ja/X2B7b3me HT+pycPOwP3nj66+CQTEvGsA5X2A+0Re4vozZ+LAFUmiXWpsfS+Yjr3Rkwh2aMcN2Mo/CHfVR/3xp 5jXvEBd6DJG0Kf0mm1XZJCS3S+lz41veKM95vTIz51gZXpmtI+5Mlr40ZJckes2pT2AWYOnihQBwQ YJ76lS0d5t6HM/GrZNZpT2LXs40VVbT2gkdE/IwPISsc1zo4SjUkQ2GND8vgntUKBi2vJTlDz9563 WMHtNieQ==; Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDTbY-0004fF-So for ath10k@lists.infradead.org; Fri, 19 Oct 2018 12:10:14 +0000 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 65E7D16C4530A; Fri, 19 Oct 2018 20:09:44 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Fri, 19 Oct 2018 20:09:39 +0800 From: YueHaibing To: Kalle Valo Subject: [PATCH] ath10k: remove set but not used variable 'tlv_len' Date: Fri, 19 Oct 2018 12:20:26 +0000 Message-ID: <1539951626-185764-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181019_081013_664040_1F230E67 X-CRM114-Status: UNSURE ( 5.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org, YueHaibing , ath10k@lists.infradead.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/ath/ath10k/wmi-tlv.c: In function 'ath10k_wmi_tlv_op_gen_config_pno_start': drivers/net/wireless/ath/ath10k/wmi-tlv.c:3455:6: warning: variable 'tlv_len' set but not used [-Wunused-but-set-variable] It never used since inroduction in commit ce834e280f2f ("ath10k: support NET_DETECT WoWLAN feature") Signed-off-by: YueHaibing --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index bab8b25..bcd80e1 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -3452,7 +3452,6 @@ static u32 ath10k_wmi_tlv_prepare_peer_qos(u8 uapsd_queues, u8 sp) struct wmi_tlv *tlv; struct sk_buff *skb; __le32 *channel_list; - u16 tlv_len; size_t len; void *ptr; u32 i; @@ -3510,8 +3509,6 @@ static u32 ath10k_wmi_tlv_prepare_peer_qos(u8 uapsd_queues, u8 sp) /* nlo_configured_parameters(nlo_list) */ cmd->no_of_ssids = __cpu_to_le32(min_t(u8, pno->uc_networks_count, WMI_NLO_MAX_SSIDS)); - tlv_len = __le32_to_cpu(cmd->no_of_ssids) * - sizeof(struct nlo_configured_parameters); tlv = ptr; tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT);