Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6678242ybn; Mon, 30 Sep 2019 01:52:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1vYei/vzTVVCy6R3qIhOhXU2vE4AZigOgITVq+EOcdV+2+LRyULKiNRiz2/9KLAVg+0/w X-Received: by 2002:a17:906:134b:: with SMTP id x11mr17981607ejb.272.1569833541897; Mon, 30 Sep 2019 01:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569833541; cv=none; d=google.com; s=arc-20160816; b=ezBgbFJQEqKbhKMHwDJ+px7H9/9lWSCNHjxhCTTfOOja443j26z3huekrQW0xxrMlq AWy1g04WxT8fPHjMfByAzBsvn4OiCdIRCsGZUtEemytFRWoH9AdajZWCiWSML53wY4qy pHk0VeXKgX+91ehoKmTqarh9MgHX7guHU6TiLep05RYpUXT/GOattAXQPV6rQYU2ZDHU bi4PYOkiOtzS41sMV26gB3ITXZ00o6zWS49eaJfeQjzVH7TGQMtRsQ7oQ3LmCPuj8374 0oTgTMh0vh0pKdIxE+Z77n5iq5NiEzJ9LnX5JDuCAhAerUmvAe1UUg9LNR7NK1eObp/d 7Opg== 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=54k+cVIS8S4uPwSJAC4NLXOZgavwM4cnfAIbGP0t2TM=; b=GWGfuB44ePy1hVSa2uysd77k25WhYCRCPSbvjp0XKQTXT993+87UAOZmXVb3M3Pb+T m4x0hku8P+M+945vNT7188/0lo1Nk4fee80WtwjRNZSZ8W6umjP7+VxvGnH6rYhyadQi H4WxpD+HVTa/EAG5jgxt9Bmy+WatqoNq2rhM0NVTLQMuq1hbgSD57vhIDB8GtOcKySdt Cvkw/vKXwvyynEmeX9G5SMi9eu1+AWi9/DuMkYY3vYfJmT5GKQ4rs8mENlw03pscgvYZ h9IhcyaPfmrdLdd9l9yPoecF6ONaA7UcLVPPcZVUNQAxwBQ/NVDguhmECARiAB/c080W eqew== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si7546127edf.34.2019.09.30.01.51.57; Mon, 30 Sep 2019 01:52:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730184AbfI3IsL (ORCPT + 99 others); Mon, 30 Sep 2019 04:48:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3183 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729899AbfI3IsL (ORCPT ); Mon, 30 Sep 2019 04:48:11 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 38E7D77053A048E6B021; Mon, 30 Sep 2019 16:48:09 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 30 Sep 2019 16:48:00 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH 5/6] rtlwifi: rtl8192ee: Remove set but not used variables 'reg_ecc','reg_eac' Date: Mon, 30 Sep 2019 16:54:51 +0800 Message-ID: <1569833692-93288-6-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569833692-93288-1-git-send-email-zhengbin13@huawei.com> References: <1569833692-93288-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c: In function rtl92ee_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c:2805:34: warning: variable reg_ecc set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c: In function rtl92ee_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c:2804:34: warning: variable reg_eac set but not used [-Wunused-but-set-variable] They are not used since commit b1a3bfc97cd9 ("rtlwifi: rtl8192ee: Move driver from staging to the regular tree") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c index 222abc4..f03de8b 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c @@ -2801,8 +2801,8 @@ void rtl92ee_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery) long result[4][8]; u8 i, final_candidate; bool b_patha_ok, b_pathb_ok; - long reg_e94, reg_e9c, reg_ea4, reg_eac; - long reg_eb4, reg_ebc, reg_ec4, reg_ecc; + long reg_e94, reg_e9c, reg_ea4; + long reg_eb4, reg_ebc, reg_ec4; bool is12simular, is13simular, is23simular; u8 idx; u32 iqk_bb_reg[IQK_BB_REG_NUM] = { @@ -2873,11 +2873,9 @@ void rtl92ee_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery) reg_e94 = result[i][0]; reg_e9c = result[i][1]; reg_ea4 = result[i][2]; - reg_eac = result[i][3]; reg_eb4 = result[i][4]; reg_ebc = result[i][5]; reg_ec4 = result[i][6]; - reg_ecc = result[i][7]; } if (final_candidate != 0xff) { @@ -2886,13 +2884,11 @@ void rtl92ee_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery) reg_e9c = result[final_candidate][1]; rtlphy->reg_e9c = reg_e9c; reg_ea4 = result[final_candidate][2]; - reg_eac = result[final_candidate][3]; reg_eb4 = result[final_candidate][4]; rtlphy->reg_eb4 = reg_eb4; reg_ebc = result[final_candidate][5]; rtlphy->reg_ebc = reg_ebc; reg_ec4 = result[final_candidate][6]; - reg_ecc = result[final_candidate][7]; b_patha_ok = true; b_pathb_ok = true; } else { -- 2.7.4