Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3191854ima; Tue, 23 Oct 2018 01:42:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV625B/4g8j0I+tvyOLMPCmLMRNqmGhQ37pA0x0QB1vwB0lpBAhf04fYSNy+nHp3ciYjIFNNM X-Received: by 2002:a17:902:9696:: with SMTP id n22-v6mr39426749plp.282.1540284179785; Tue, 23 Oct 2018 01:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540284179; cv=none; d=google.com; s=arc-20160816; b=knNd9sPgU/F7OSsVdyGrtcvk5p8u2Pjmrz0Ra4q+CMgZFA7NrIWs00SI1jCxIgOO+R 05y2bDppLUIE5hy4xeXRekrObq5WJR2lYa8LQ7m7hMkUdSxTh4UmZbVfPysEo3T/glji tgzes5eE9kt2VNK175hdsuxEvwHRhWtFguW6Ts8SRxnrD+xa7mW0SmocvneUtNpmY83X +aPsbyRdDOdSOJaGLf/z1aoO8T7OpyomlIKB7TBUSOypfa6rnjUmvtJS3biwp1oGwHmD GKO0DJM6gxIfFobc+zRwZ1PL9RtrlrAhgICYRnOkm/WlB3qvoLpN9ugIRkTGvkBGofZS 3jFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=/vur20meqSxRqOjPPBX0mfFjfxARSFXjUqttHKNUK+o=; b=oCK/I8MFYrd9wNRfcgKQk25SdwE1vs7I/lXzs3P8BCdHdW+PQB/kwVCJKopbjQEnAL J4Sq/oUVbxMD+iULG2dzlIfRwAgCFTjsvUE57qEhJ3gHy4WNrVlGanc+v+twA2OW+mV6 vNH7uBUgBNnRUCtcc7ws2bCHbpzDDs1nRq0ZTIlI30CWldZOibtLKy2AA8oWVGOzBFxP c3JOuK2RLFEq2Eh2n180ixWNV0v2BuSGlm3Ue3v8PnneAnzJ7WWKDQujTb4Lu7MfrP3P pybUmlUOiqMQRDlzjkldQ66XtQTwReaAR9queBnQHOJHc1ZU/wcirmJdwKbHGLvcME9M CQwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 g189-v6si646020pgc.204.2018.10.23.01.42.44; Tue, 23 Oct 2018 01:42:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbeJWRDJ (ORCPT + 99 others); Tue, 23 Oct 2018 13:03:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13683 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727542AbeJWRDI (ORCPT ); Tue, 23 Oct 2018 13:03:08 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 28C6DFAF76082; Tue, 23 Oct 2018 16:40:42 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 16:40:43 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH v2] rtlwifi: remove set but not used variable 'radiob_array_table' and 'radiob_arraylen' Date: Tue, 23 Oct 2018 16:28:02 +0800 Message-ID: <1540283282-9772-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org radiob_array_table' and 'radiob_arraylen' are not used after setting its value. It is safe to remove the unused variable. Meanwhile, radio B radio should be removed as well. because it will no longer be referenced. Signed-off-by: zhong jiang --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c | 5 +---- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.c | 4 ---- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.h | 2 -- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c index 5cf29f5..3f33278 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c @@ -509,13 +509,10 @@ bool rtl8723e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, int i; bool rtstatus = true; u32 *radioa_array_table; - u32 *radiob_array_table; - u16 radioa_arraylen, radiob_arraylen; + u16 radioa_arraylen; radioa_arraylen = RTL8723ERADIOA_1TARRAYLENGTH; radioa_array_table = RTL8723E_RADIOA_1TARRAY; - radiob_arraylen = RTL8723E_RADIOB_1TARRAYLENGTH; - radiob_array_table = RTL8723E_RADIOB_1TARRAY; rtstatus = true; diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.c index 61e8604..1bbee0b 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.c @@ -475,10 +475,6 @@ 0x000, 0x00030159, }; -u32 RTL8723E_RADIOB_1TARRAY[RTL8723E_RADIOB_1TARRAYLENGTH] = { - 0x0, -}; - u32 RTL8723EMAC_ARRAY[RTL8723E_MACARRAYLENGTH] = { 0x420, 0x00000080, 0x423, 0x00000000, diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.h b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.h index 57a548c..a044f3c 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.h +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/table.h @@ -36,8 +36,6 @@ extern u32 RTL8723EPHY_REG_ARRAY_PG[RTL8723E_PHY_REG_ARRAY_PGLENGTH]; #define RTL8723ERADIOA_1TARRAYLENGTH 282 extern u32 RTL8723E_RADIOA_1TARRAY[RTL8723ERADIOA_1TARRAYLENGTH]; -#define RTL8723E_RADIOB_1TARRAYLENGTH 1 -extern u32 RTL8723E_RADIOB_1TARRAY[RTL8723E_RADIOB_1TARRAYLENGTH]; #define RTL8723E_MACARRAYLENGTH 172 extern u32 RTL8723EMAC_ARRAY[RTL8723E_MACARRAYLENGTH]; #define RTL8723E_AGCTAB_1TARRAYLENGTH 320 -- 1.7.12.4