Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6675676ybn; Mon, 30 Sep 2019 01:49:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2moV15Ewm82igb9ZQjfnfwU6ik8pV55l7f9uEq2OUydTPst6mBs5+mhOfPu83OCiqCwA8 X-Received: by 2002:aa7:c2ce:: with SMTP id m14mr18458309edp.191.1569833342188; Mon, 30 Sep 2019 01:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569833342; cv=none; d=google.com; s=arc-20160816; b=epUfQm1lPaqdoxEFGoceIHsqyfdykpeNnXZflLpODze3oi8VgPkhzS9Pwnyv75Mi+X tPK0FN51RQ7HhiDDA9qAo03EF+2j/deoTMmTiaMSGZeoCb+19QCKQ6nFxUFgoVhNBGLq hq9WgA2GNtKNIw5oa6xAVUIJJ/cTS4KP8/g/I2xpojsVLCejtFR5cSX60AmmWjTrv9W6 oqXEqYZTqgPjqbZl5LjNWsOgYX05hg4uZGgL8xUzDKYsNzWEZ2WUg58II4Pptd/KUU+K s1mAN0robsvZWbz7NEBLDa0NkfyWKs24EWzJgbe1umlFZihR3sOFxPcJZ5saGCCbCrT4 cbsw== 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=RYepa/p9zYaGqmouskCn9u+9atqWnYmEUWcjMmCtfo8=; b=pjkJ0Y7/+ED0Yil7YObAC3E5zBWAXcHC0gPmHFTTSF4sDEC7YYEk7k8uM9vH19LwmW ox6HSVBU25CsirIquxIYuw1if3zxs595HdnCZNO772O3gbY1Lj0FnXWcHeS7CRGfYgbI nqMcHv+XzJLqQgg+Uilbn7ghpYG7+v+JB8RNcEORVYhnPBIPL7J+FhkS+slwBlkeZBOj mpoq5jvDhogsXOUvtfAU+hY5p71CB1aR4ZjdE+fG/MbmjC+EILFi6MnnvzDJ0eb8Q0OP HRdyc6CKQfOpVYFET0JjGp5QmFIb8HrJz9hM3srtLqrUZrS2ylrkawuBJCvmziFDEWHf cEow== 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 g20si7253023edb.149.2019.09.30.01.48.21; Mon, 30 Sep 2019 01:49:02 -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 S1730203AbfI3IsM (ORCPT + 99 others); Mon, 30 Sep 2019 04:48:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3182 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730117AbfI3IsM (ORCPT ); Mon, 30 Sep 2019 04:48:12 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2EDFA3D0026E69F40A4A; 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 6/6] rtlwifi: rtl8723be: Remove set but not used variables 'reg_ecc','reg_eac' Date: Mon, 30 Sep 2019 16:54:52 +0800 Message-ID: <1569833692-93288-7-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/rtl8723be/phy.c: In function rtl8723be_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2255:7: warning: variable reg_ecc set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c: In function rtl8723be_phy_iq_calibrate: drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2254:34: warning: variable reg_eac set but not used [-Wunused-but-set-variable] They are not used since commit a619d1abe20c ("rtlwifi: rtl8723be: Add new driver") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c index aa8a095..d483644 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c @@ -2251,8 +2251,8 @@ void rtl8723be_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery) long result[4][8]; u8 i, final_candidate, idx; bool b_patha_ok, b_pathb_ok; - long reg_e94, reg_e9c, reg_ea4, reg_eac, reg_eb4, reg_ebc, reg_ec4; - long reg_ecc, reg_tmp = 0; + long reg_e94, reg_e9c, reg_ea4, reg_eb4, reg_ebc, reg_ec4; + long reg_tmp = 0; bool is12simular, is13simular, is23simular; u32 iqk_bb_reg[9] = { ROFDM0_XARXIQIMBALANCE, @@ -2334,11 +2334,9 @@ void rtl8723be_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) { reg_e94 = result[final_candidate][0]; @@ -2346,13 +2344,11 @@ void rtl8723be_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