Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3866748ima; Tue, 23 Oct 2018 12:34:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV634X947agA2rUml+N6TMolBoLhfrnyuwftOgMKeX6Yem4n74QigbVUtU1kTE6pePeQWOym/ X-Received: by 2002:a62:3245:: with SMTP id y66-v6mr41927230pfy.72.1540323256413; Tue, 23 Oct 2018 12:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540323256; cv=none; d=google.com; s=arc-20160816; b=dyxGtZ/mhFq4IHVB64fTu9Sb5snfoMlHED0eI+Qz2sG2XYBnkTcYil/H5Qwfx+RdDU IhLS53iJADRIBsk+sAibeZWF6SOsbz1/ko5CwQuvoHc9J/LwqfxqhHEkGUibcyU1MEzA Zt+p2zo1NFnK3STjzG0uMu2jKmB0na2Xy8MKgLvBO8CojJjduvZEv+OMIhkEHT6PEvgC c3fB6LBE4H1j4x+K4MxXRR5KZV4gGO9oB+6FgPKUNX/D9FnkBDoCLUU9I+JOst6RYjo1 QiiudznXghqNVsBI0YHl+mD+28uVrN7+dIxeSygimbntwdj8+APXJghBxyYWdObRbLeG 28vA== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=++fBCcRdw8FbWFzQUM0c8rSeABGKXZo5DQwczT6gJ7Q=; b=xtdS0QdJtBMjpqlMuX/K5CO63jRpoDnqqX0zUa223u8/IwRCr7J8flXANc6lw2HWLZ z9oyGSp4NPhNmyoqozeuABuDdL4FZH1SKgd+OYQJx371G6okQl7G9pMB21oRBhbzW+n/ xvexL0khYhxOWHxn1dnnWeKf44lIgeZbUzNq6CaFQLPppGfukQJsJeXgswbv5GPakYmf t6hthpqbRBa+Tc6LZLvnR0rv5cV1t7IFwFOnqTloUvD03+zb7QSI/5ulE8ECo2CIHAb3 QPIStK7IdGzNAonUg+3I6ItUDeHq3z0d7JKj6jeTbxBd/yF2Y0cqej4WvRYbtszUCFQd vBDw== 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 b190-v6si2332401pfb.166.2018.10.23.12.34.00; Tue, 23 Oct 2018 12:34:16 -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 S1728974AbeJXD6O (ORCPT + 99 others); Tue, 23 Oct 2018 23:58:14 -0400 Received: from smtprelay0056.hostedemail.com ([216.40.44.56]:44235 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728813AbeJXD6O (ORCPT ); Tue, 23 Oct 2018 23:58:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id A82C1181D3417; Tue, 23 Oct 2018 19:33:26 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:1981:2194:2198:2199:2200:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:4321:5007:7904:10004:10400:10848:11026:11232:11657:11658:11914:12043:12740:12760:12895:13069:13161:13229:13255:13311:13357:13439:14181:14659:14721:21080:21451:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:29,LUA_SUMMARY:none X-HE-Tag: burst07_1dddc9ae52951 X-Filterd-Recvd-Size: 1714 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Tue, 23 Oct 2018 19:33:25 +0000 (UTC) Message-ID: <19b16ca89b5cde607338513638d4ef8e3a3d2802.camel@perches.com> Subject: Re: [PATCH v2] rtlwifi: remove set but not used variable 'radiob_array_table' and 'radiob_arraylen' From: Joe Perches To: zhong jiang , kvalo@codeaurora.org Cc: davem@davemloft.net, pkshih@realtek.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 23 Oct 2018 12:33:23 -0700 In-Reply-To: <1540283282-9772-1-git-send-email-zhongjiang@huawei.com> References: <1540283282-9772-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-10-23 at 16:28 +0800, zhong jiang wrote: > 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. The patch subject is a bit off and too generic here. This is specific to rtl8723ae and not rtlwifi so it is probably better for the subject to be something like: [PATCH] rtl8723ae: Remove set but not used variables and #defines > 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 --