Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp683215ybp; Fri, 4 Oct 2019 03:19:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwabFTlvXTMQGXk5UdW3hgq86JU6Mh9ed8Fcp3lMDSsZoi+G1WLZnCdrO0XUUf0f/BhTy8 X-Received: by 2002:a17:906:9381:: with SMTP id l1mr11512618ejx.93.1570184390533; Fri, 04 Oct 2019 03:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570184390; cv=none; d=google.com; s=arc-20160816; b=BFaexBdnVvIu1n059p7Km/akw8rxRf4k1O2AeqabY88sB2lJK9mO/yN4CJzn0NT8Qg c/5WasAI5ZNATzADPBpBuSofXW8OmOzZPFzln3Hh9i1cCoBtXFUMUgguUomMCFldbGn9 qmS5R6p6gpV278W8tM0ne2KUf9JMP9IM5wC4rV/+4m2yiHWnkczkWAnPKgLTBWHmYsKj a92TuehdeyTRWMmmR/idj9sHBqgVgouraLZq++0td7sp8NGaLgNs34FfXx270QE1CkLc hdk+7b+OAVTgED+xQeFcsKzLyYlaJgTZTYyOjXAVeLBIO0P4P7yi5Sw34nUC7DJr+K8c XX3g== 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=0xPRLiLLmfPVCZQLgvNOeK4WTxxqzFq0URVGJC/1PK0=; b=pHmr4Hm7x4EVZvgTbFQE6ehuP037cueuI1QVhwEuAROZj+3Ra2WyRuZzCx72L4CGGL l+iZkudgixV51+iN4oSKlrH0fLt7HWWbAPfa1JP79xg/ubeKzX6MQVyuvFZSuwZlcZgI 67gkNabfeP5fDDLb8G5F3vKwrElLFN8/lpo40kVP7WXMqbGGLNi4GlU4cHeMK9QrcjPT H86o8OYtzXNeREHoVSJ279jJEQpebO9eFkVjy/CblLZGQQGN5LewlcVW/4D/pBqk2HAc 2S80hSp5zM+uRR1pR6ylQjghVye/VOyMkcYINm1IJeC2aJ+Kk+ke60jO4t/vJJhcrNJu raXA== 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 k9si3281823edb.56.2019.10.04.03.19.11; Fri, 04 Oct 2019 03:19:50 -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 S1731087AbfJDJLz (ORCPT + 99 others); Fri, 4 Oct 2019 05:11:55 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59144 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730921AbfJDJLz (ORCPT ); Fri, 4 Oct 2019 05:11:55 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D195766A008B50E46E3B; Fri, 4 Oct 2019 17:11:52 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 17:11:44 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH] rtw88: 8822c: Remove set but not used variable 'corr_val' Date: Fri, 4 Oct 2019 17:18:56 +0800 Message-ID: <1570180736-133907-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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