Message ID | 20201102112410.1049272-29-lee.jones@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0a43d993ee7ecd2c512cb529f02103616e4551c6 |
Delegated to: | Kalle Valo |
Headers | show
Return-Path: <SRS0=EpEU=EI=vger.kernel.org=linux-wireless-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 017CD92A for <patchwork-linux-wireless@patchwork.kernel.org>; Mon, 2 Nov 2020 11:26:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C773E2084C for <patchwork-linux-wireless@patchwork.kernel.org>; Mon, 2 Nov 2020 11:26:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MPOo7oFM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728833AbgKBLZB (ORCPT <rfc822;patchwork-linux-wireless@patchwork.kernel.org>); Mon, 2 Nov 2020 06:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728815AbgKBLY5 (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Mon, 2 Nov 2020 06:24:57 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918AEC0617A6 for <linux-wireless@vger.kernel.org>; Mon, 2 Nov 2020 03:24:57 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id w1so14165596wrm.4 for <linux-wireless@vger.kernel.org>; Mon, 02 Nov 2020 03:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dC1HY3295RvOHBr8DWnLhRLYKV4wb0SqtT4zdtIpm24=; b=MPOo7oFMsJRFYLXnm/bFDJdP2kpvPc2ioROvNmvc60Sdy+TTBecmDAtP8zK9lsd//A 55Y5jq38ujkRuZDcK7PkYlQmnC9OxYTHddgio2w82EBBAtw1J9eaBdYqXANsvWHDjp2G w6W28QUgfhB1NI4P1noH1xZFhtd+Xi1BRlJpQn8c8xB4uIEMcNuVbxPk4zWABkykyZrB Uq3hejnrR/w4Ci3Emed7V6gyvUi47+s6TIpNUeShTeLygvrabpTauqFt0J5MDiy5j0PP BThA+1l9inNjnj7Yqpz7BXEGOdmP944EoO+5kmyjvxiXTJEU2DdY7ivzXZRIAVVdEwb1 6hNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dC1HY3295RvOHBr8DWnLhRLYKV4wb0SqtT4zdtIpm24=; b=cMno9JxW+2Q9o7uP0UvmtmOzl3ZeHhUx+sGytL52ae1w6zUxmqobXd55apIxRwzelz onX1p3ZiiXWmbIsq1O5I00amI6NXEj4feKBNr8p1kvcacO/nzaPl9oWEjGS7+sXE2ZGl K3ygvXRvnM0wzioFZNHhYh0FL/iNo35HWCaCEVxPaEHD8LP7piRXi8zk9TFhOwnXoDza yc8tkl5Z/Izsth3uArqsVVU1n8Ho0FkiPM2vzxzOu6qj5FWoYautc2w/FaiI0Q41Tmxf dEsW4E5oI9TB+tbre2eHJgBhg9E/XM02oS97Yg95hiQp1E5OObRANujmymjuYtyD8xEs EjVg== X-Gm-Message-State: AOAM531Rso1DxhUx4Ff2UPDAmaB6Xw6SU6JPjDWNftmhjGEV4Bhqud6X DUoV9T2MYF/LLEuGFBV8G3Exuw== X-Google-Smtp-Source: ABdhPJx0zmNhrM4E9BGxq1guyT1+xmUrcrR3J/bI5Rpar14jhZoBxvxNLD5dLF25N5hj0eSL/CJu8g== X-Received: by 2002:a05:6000:12c2:: with SMTP id l2mr20975973wrx.249.1604316296305; Mon, 02 Nov 2020 03:24:56 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id m14sm21867354wro.43.2020.11.02.03.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:24:55 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Ping-Ke Shih <pkshih@realtek.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Larry Finger <Larry.Finger@lwfinger.net>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 28/41] rtl8723be: phy: Remove set but unused variable 'lc_cal' Date: Mon, 2 Nov 2020 11:23:57 +0000 Message-Id: <20201102112410.1049272-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102112410.1049272-1-lee.jones@linaro.org> References: <20201102112410.1049272-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
[01/41] wil6210: wmi: Correct misnamed function parameter 'ptr_'
|
expand
|
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c index f09f55b0468a4..2b9313cb93dbd 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c @@ -2178,7 +2178,7 @@ static u8 _get_right_chnl_place_for_iqk(u8 chnl) static void _rtl8723be_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t) { u8 tmpreg; - u32 rf_a_mode = 0, rf_b_mode = 0, lc_cal; + u32 rf_a_mode = 0, rf_b_mode = 0; struct rtl_priv *rtlpriv = rtl_priv(hw); tmpreg = rtl_read_byte(rtlpriv, 0xd03); @@ -2202,7 +2202,7 @@ static void _rtl8723be_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t) rtl_set_rfreg(hw, RF90_PATH_B, 0x00, MASK12BITS, (rf_b_mode & 0x8FFFF) | 0x10000); } - lc_cal = rtl_get_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS); + rtl_get_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS); rtl_set_rfreg(hw, RF90_PATH_A, 0xb0, RFREG_OFFSET_MASK, 0xdfbe0); rtl_set_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS, 0x8c0a);
Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c: In function ‘_rtl8723be_phy_lc_calibrate’: drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2181:36: warning: variable ‘lc_cal’ set but not used [-Wunused-but-set-variable] Cc: Ping-Ke Shih <pkshih@realtek.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)