Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3177179ima; Tue, 23 Oct 2018 01:25:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV61UtHkzHYWylqkBVzRNSLUF62pV+TxAjKi8qmaKjVs0HF0t8+cNQMwzNiCK0xBOMJ3uyYlT X-Received: by 2002:a17:902:b206:: with SMTP id t6-v6mr48813558plr.228.1540283130090; Tue, 23 Oct 2018 01:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540283130; cv=none; d=google.com; s=arc-20160816; b=IjrqfqCJAotK/uiF2hgFd3kSgXKLdJ12VsfrmOWSnVvlanAbFe4Hq15dx0hXot6J5x YP855AH7SKyK5u/bafRDe6zlr7WT/ZI0QI8OvulpEp1ZTXAoYZDXiim3nluKV9me787l dErukcsoRjn+qjv2HzX3JIkyL4ZpXgaampLDDNQVfH9zsFIjDq1dhgprbP50nE+KIlfg QDsCp3yjjjtMLSwSJrrERd98Y0f4Rm6Hn/BHKBJ0rmuFpg4gGKEqz5Lqno4MVNBVIynV kZ7U7ZNCwHDfKbUxf5zeppf9m9VbXwzl0+XuWSu+tois7mnr7PFfIh5PfyzfCz+8qYhQ L8dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=2H3Z1GKl1EvmDVGxlNeI8tN5UlLJSk0XFhvw375WiwU=; b=OFqnZ2PLqNlbxCFGUEwIXQwDNRWTaxqNfLYhzarcN5jDnuvt1GJ5vye4eOyodfe4qq fmOc0k6A8dQ/Y6DqG/n/+laXFWJUFoHqpIoWNMqa4ld9yFneDhFoxLQspYwrnfhGzf// ghWdQ4V6FM8clothL2aMVAEM/nkxzV+v7IWWfUy2XUsccsgkLutz9+rty2DLJp+8ykVq GBRe9nkGKVlVvSvBkZcAwQr2BbDGZ20Dao7qiwTnzU3TG6rF7aG/PJSBZJnAtMxhxfFJ 9gCS9XPWJtn7C6j/fuKrh8AUnlc8RWS3p52UFDLB/WIMwdiST/O/A4X+bM/0EK3XnNyL +Syw== 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 p19-v6si614224pfn.97.2018.10.23.01.25.14; Tue, 23 Oct 2018 01:25:30 -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 S1727854AbeJWQpp (ORCPT + 99 others); Tue, 23 Oct 2018 12:45:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13682 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727470AbeJWQpp (ORCPT ); Tue, 23 Oct 2018 12:45:45 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3B39ED9E0AB6; Tue, 23 Oct 2018 16:23:22 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 16:23:20 +0800 Message-ID: <5BCEDA77.9010505@huawei.com> Date: Tue, 23 Oct 2018 16:23:19 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Pkshih CC: "kvalo@codeaurora.org" , "linux-wireless@vger.kernel.org" , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] rtlwifi: remove set but not used variable 'radiob_array_table' and 'radiob_arraylen' References: <1540273651-64688-1-git-send-email-zhongjiang@huawei.com> <1540281873.25715.2.camel@realtek.com> In-Reply-To: <1540281873.25715.2.camel@realtek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/10/23 16:05, Pkshih wrote: > On Tue, 2018-10-23 at 13:47 +0800, zhong jiang wrote: >> '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; >> > I think 8723ae has only one antenna, so you can remove radio B array as well. > Yep, Will do. Thanks, zhong jiang