Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3066360ima; Mon, 22 Oct 2018 23:02:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ESoCH7rpsMFg4FNu/lwfyXOZvdo09no1TSqEIVN2jgkw2zc8wT5xc+fa+JIfSJKYsyk6H X-Received: by 2002:a63:2447:: with SMTP id k68-v6mr16078188pgk.156.1540274575302; Mon, 22 Oct 2018 23:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540274575; cv=none; d=google.com; s=arc-20160816; b=kvwb+n3VbOzOgP3LhuWdyAKnWIWDPyktghqabj3YoWBPiMCJzbexHggg308N4vJMA3 QTVloyaH6ztbCp6vLIBqUQcWA6Nvk6RMXJoPPMqr9MlObnu0RqtdS4AM/rmigo6/dZfc LFQubUZD/yYOypoP8Mkhf6b3vtjzelTaZWvUHK4LL9GyhVc9qTX7PwhHCYUzC07ZaD/S 21//zhOjzMs++Kn9xVtBCJOkUsMQrglGmx5DCPgoM6fIQ4Y3rKmjAqEMmcnd59knryCv dJIg7zYO6oKKhop9K+hUZgSB+7eYAvJAqY0whNLtbOkSFPD9eK/ihBV6T86QJm6bHYm4 tw3w== 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=ZX8C8xnDBzmru+o1MtKwqqMHKrH++leiZFClR5sNO48=; b=YHjp4NcTKkQgP1s/gBy7bv9uKRD9Is1PoQ3Ua9bz3MqtwChJdrM2k7+E5HWj6A+BI3 GwTv+NUvcGjwrJdDTBfpBQhcBWAOiIzz7iR9GOtJ9rPfmNjwLUpAboPeEndxAsr9vLKv Wp5aWUTMbctxteam11g98wH7GSU48sdtZhCbGlTVhpek/WfYFU3OuY8m4Z4W4jufgRis PU1K7aOIVonIrRIDo+76BArHdA22TSVIBIEzo3ytyqzj3U3Oo1+frt/GwxBsCoJgAOk/ d/GS/atITlHXtwWnhDvSW2ghvnorzeDJcwYQfk3MH3iaxuJsRReQypx/IM/bRxwRgHaC e1PA== 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 h13-v6si288347plk.130.2018.10.22.23.02.39; Mon, 22 Oct 2018 23:02:55 -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 S1727639AbeJWOWU (ORCPT + 99 others); Tue, 23 Oct 2018 10:22:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13681 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726764AbeJWOWU (ORCPT ); Tue, 23 Oct 2018 10:22:20 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 63AC0DAB1677B; Tue, 23 Oct 2018 14:00:10 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 14:00:10 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH] rtlwifi: remove set but not used variable 'radiob_array_table' and 'radiob_arraylen' Date: Tue, 23 Oct 2018 13:47:31 +0800 Message-ID: <1540273651-64688-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' is not used after setting its value. It is safe to remove the unused variable. Signed-off-by: zhong jiang --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c | 5 +---- 1 file changed, 1 insertion(+), 4 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; -- 1.7.12.4