Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5423821ybp; Tue, 8 Oct 2019 02:38:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUFfNbl7MwoCwt/tewL9ggUss0dji/ilPUwklM4sJPtr0tH/YdUteH7pNIxTzcy0bjzdMw X-Received: by 2002:a17:906:3d62:: with SMTP id r2mr27911883ejf.108.1570527480139; Tue, 08 Oct 2019 02:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570527480; cv=none; d=google.com; s=arc-20160816; b=mnQgkmH1q/mvkVrFxL2MreBTfxPW9jZ0kBkDelsdPplibYs1MWfRfrPOfi7WAHDbVU K/W9uXJZZ1e23DwUZsRCqhj2A8NJi5oLuAC7rl1v13+GXTe+P0cULhD2guOiUuIPuQjr ROSX9dqDODC8TsfhiWYlXv7O0zkWOVvNqzlg2cWAisK6o4uHXdi7KrNhQYNC1WdlbUL/ U6fHSRWFn+2GcXPfRFesZ7Kl9nEQXLw32lwvmZcFCrxYgGniCPYBhfQyteqpxufawhbz YJj+VcT74tSw/h744WYPzmyT5RvPCVgg4C03zMii+td+CPQm5haVX/eTj7+mDmwlOijw NUkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=3w5CTUnh7quuHfq8EYL+vWKGs0wNfyRwJZUIkvYLzco=; b=sKv7Xy8bn52zgSwNYj1yYto2IB93k7TeqJBPGllQJTDmUOFRdDAc+06OPBgT+TKvHf 0xhS00Hv3eHjURN9fq7Ul+QyVz9kwaXD/ovrydULGrbtKJYd4G2X/eu9cyPzCVKX+9OL K/wMsBU89lODJaTQZ6rU9n8S/d+2WAgc99iyLi4IsrGUkZp1TAJT7nm0e0IXYk6Waics 4crnOIi+sjyErXhdgv5KTUGv0sLItHm6mTk5/9SjL3v90z1unZmnPJSUGL6Xgm2NeOxs WZ89nqkgZW/bCcRdIE2YRaKe2kkqQweGVhFWZKc8wULXffjlkD7WVkGmAVkhRUekcfov 1R4Q== 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 x51si9820221edd.193.2019.10.08.02.37.29; Tue, 08 Oct 2019 02:38:00 -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 S1729767AbfJHJeB (ORCPT + 99 others); Tue, 8 Oct 2019 05:34:01 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3220 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728866AbfJHJeB (ORCPT ); Tue, 8 Oct 2019 05:34:01 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CE777E2A3884B38F2A20; Tue, 8 Oct 2019 17:33:58 +0800 (CST) Received: from [127.0.0.1] (10.184.213.217) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Tue, 8 Oct 2019 17:33:57 +0800 Subject: Re: [PATCH] rtw88: 8822c: Remove set but not used variable 'corr_val' To: , , , , , References: <1570180736-133907-1-git-send-email-zhengbin13@huawei.com> From: "zhengbin (A)" Message-ID: <08492ba6-eaf6-8c72-74fe-f49e0a95639e@huawei.com> Date: Tue, 8 Oct 2019 17:33:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1570180736-133907-1-git-send-email-zhengbin13@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.184.213.217] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sorry for the noise, please ignore this On 2019/10/4 17:18, zhengbin wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/realtek/rtw88/rtw8822c.c: In function rtw8822c_dpk_dc_corr_check: > drivers/net/wireless/realtek/rtw88/rtw8822c.c:2166:5: warning: variable corr_val set but not used [-Wunused-but-set-variable] > > It is not used since commit 5227c2ee453d ("rtw88: > 8822c: add SW DPK support") > > Reported-by: Hulk Robot > Signed-off-by: zhengbin > --- > drivers/net/wireless/realtek/rtw88/rtw8822c.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c > index a300efd..52682d5 100644 > --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c > +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c > @@ -2163,7 +2163,7 @@ static void rtw8822c_dpk_rxbb_dc_cal(struct rtw_dev *rtwdev, u8 path) > static u8 rtw8822c_dpk_dc_corr_check(struct rtw_dev *rtwdev, u8 path) > { > u16 dc_i, dc_q; > - u8 corr_val, corr_idx; > + u8 corr_idx; > > rtw_write32(rtwdev, REG_RXSRAM_CTL, 0x000900f0); > dc_i = (u16)rtw_read32_mask(rtwdev, REG_STAT_RPT, GENMASK(27, 16)); > @@ -2176,7 +2176,6 @@ static u8 rtw8822c_dpk_dc_corr_check(struct rtw_dev *rtwdev, u8 path) > > rtw_write32(rtwdev, REG_RXSRAM_CTL, 0x000000f0); > corr_idx = (u8)rtw_read32_mask(rtwdev, REG_STAT_RPT, GENMASK(7, 0)); > - corr_val = (u8)rtw_read32_mask(rtwdev, REG_STAT_RPT, GENMASK(15, 8)); > > if (dc_i > 200 || dc_q > 200 || corr_idx < 40 || corr_idx > 65) > return 1; > -- > 2.7.4 > > > . >