Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp592112ybp; Fri, 4 Oct 2019 01:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8Mjb42sNaqXhIFmCnw3Knhaj04k6lJwlGD4bNoCIw7o/C3FL5Yq33sWh+91GMll/qgNhK X-Received: by 2002:a17:906:4b15:: with SMTP id y21mr11252707eju.112.1570178343658; Fri, 04 Oct 2019 01:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570178343; cv=none; d=google.com; s=arc-20160816; b=zta7OSzdvXb5Mhg0kIxQVEKYwFdVfwosaJ1LvO36kOlfue8n1ahX87iAjv1QdJUaEd 44pkwxjM+aGKTnP/KDbf4SBI9zbrYVDRZjkXhdweOefrJqDaJjb7F9y4ZekqKrgUzUAQ sOwZhyjDTwHGGmVuX903ccuWoUkXDAe/RyZKswnFjpdMEFdmvkz0MW2eFZ6Ec5HWaj8Z E5PrDJE6BbJdfjvuLttBL6Sws37EISyXqINx9CJIizd6k5EHAj0X1YtaOTlTk14wpi+2 eNvX8oBZpYXH5vBpMl0wE4RiRbzkdvbgsKlQYEBbUJb17Tv1tcR2wqVKsjJ8mjz85gbc /UyA== 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=9aTksYeQ5IXU5prlZ4iC5LP5hVBAUuE3UHzhmOBaao0=; b=d0SCjAyOGWVLuKUph0SVsuvr5iDwxhfDp3IZZYUCMFIuopDbxRSASSxuw33+qCDy9B lZbrpOkhC9AXCk4k85RcZEBS99a4b+esCKic+QerYKWWR7tiC42+759yF2pDgQyjfpwU TDBltHQ+rX6eGYVbrHNRtEUsBXTe+efuljLenh8ZzX0H6ulyuZVScPzcO+hXue7jfk73 GLh0+XBb1ESZvOq2Fk+rfRaAzmV4BihqdDSa7JwX54T+4+75OuraZqBDjrfASbztLm17 /Ea0jxQjyoqexzaaw6/aZjvVpFz3oEXydbuoMAkQqOpWqREAGuohIqAGmUZXUComJOVg 2kjg== 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 22si2610167ejz.218.2019.10.04.01.38.39; Fri, 04 Oct 2019 01:39:03 -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 S1728462AbfJDIgz (ORCPT + 99 others); Fri, 4 Oct 2019 04:36:55 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43542 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727242AbfJDIgy (ORCPT ); Fri, 4 Oct 2019 04:36:54 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CE866F7FA72FED97EB6B; Fri, 4 Oct 2019 16:36:52 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 16:36:44 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH 3/8] rtlwifi: rtl8192c: Remove set but not used variables 'reg_ecc','reg_eac' Date: Fri, 4 Oct 2019 16:43:50 +0800 Message-ID: <1570178635-57582-4-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> References: <1570178635-57582-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/rtl8192c/phy_common.c: In function rtl92c_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c:1373:6: warning: variable reg_ecc set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c: In function rtl92c_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c:1372:34: warning: variable reg_eac set but not used [-Wunused-but-set-variable] They are not used since commit f1d2b4d338bf ("rtlwifi: rtl818x: Move drivers into new realtek directory") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c index 0efd19a..661249d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c @@ -1369,8 +1369,8 @@ void rtl92c_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, reg_eb4, reg_ebc, reg_ec4, - reg_ecc, reg_tmp = 0; + long reg_e94, reg_e9c, reg_ea4, reg_eb4, reg_ebc, reg_ec4, + reg_tmp = 0; bool is12simular, is13simular, is23simular; u32 iqk_bb_reg[10] = { ROFDM0_XARXIQIMBALANCE, @@ -1445,21 +1445,17 @@ void rtl92c_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) { rtlphy->reg_e94 = reg_e94 = result[final_candidate][0]; rtlphy->reg_e9c = reg_e9c = result[final_candidate][1]; reg_ea4 = result[final_candidate][2]; - reg_eac = result[final_candidate][3]; rtlphy->reg_eb4 = reg_eb4 = result[final_candidate][4]; rtlphy->reg_ebc = reg_ebc = result[final_candidate][5]; reg_ec4 = result[final_candidate][6]; - reg_ecc = result[final_candidate][7]; b_patha_ok = true; b_pathb_ok = true; } else { -- 2.7.4