From patchwork Wed Aug 26 09:33:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 248400 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp4157746ils; Wed, 26 Aug 2020 02:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+FrnAy+R93JvkdoNBjEt61o4FQ65JNQbFshRsGIqDAnSD+Jm9ZccHW7h/RWhV0p1hrXVN X-Received: by 2002:a17:906:eb49:: with SMTP id mc9mr14577167ejb.36.1598434771494; Wed, 26 Aug 2020 02:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598434771; cv=none; d=google.com; s=arc-20160816; b=k5uQnHvwBs/sOSSvyD4x6LJuw/+UgyB2x+Btsq4fByHB+pKrs+AOurwoageAhL01HE ds0Y8djDs/S+UVoNpUmvxdyEKunRkPnto3LuaLU+gaktIA+HtRadzTORFL7y1TCTzqjb 6iMeIB8y9LsEiHRynGJIXZ2U8HyAl3KpnB64Zi1aJHuzYLG/FNat5IphuAMkhwFkXh67 ci6cR25FXQsF+eH0Bga/FTv6dh06m6f/n7o3xyuJ8LlDHCxzwCFRbv9aTpVxp4ypN/ap kmo8gXK2u52q7OlApAnVRbAbbnLDuNvU1YpU/Fp5BgDnHBM/eDS/ikivUIAfpSDnWyaO KXNQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EvbW1gaMEShMzK91x3sz003pknPcT/UGnfug8AZOG8Q=; b=UHD8CENMkoZxqL2BJVQ3IaxEoPhpHV/Xd/j9UNXfQm5zLFq1GDD2YVAKgc5Oss4e+F 5dQ10QDEta6ic1udNR1CGlnZ68MXS0pk8R6jIMcgFeFOKrw3Y5ZkZB2T2AT1x4mUu59y b/W5ZWykeDy32oGz7lpy0pU4YGGLpnMs9BLrqRS+JfMrCZ9lAsk5L/LEAQPQK9EcyQic IC1+GM9oT0QD3HY3gOPpqgBzJkFSi1x+hKZ2Kwt6wpYddtGB2SLc7VAtx8j309MpPaTd 34bVqeUlNySEiwq5CcZtQubl+8uM0ubhYLNT8kLFsBpgasATge6qW0Y4mi5EzmHIhqYD eN3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQ8jCjlD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si1209383edr.160.2020.08.26.02.39.31; Wed, 26 Aug 2020 02:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQ8jCjlD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728679AbgHZJjQ (ORCPT + 2 others); Wed, 26 Aug 2020 05:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbgHZJe2 (ORCPT ); Wed, 26 Aug 2020 05:34:28 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E206C0617BA for ; Wed, 26 Aug 2020 02:34:16 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id c15so1074959wrs.11 for ; Wed, 26 Aug 2020 02:34:16 -0700 (PDT) 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=EvbW1gaMEShMzK91x3sz003pknPcT/UGnfug8AZOG8Q=; b=rQ8jCjlDnJ/GRppenxBEfbplj3jYE5RBgm+J6KHql5+Pg/1QEb7cydp3GzxR9z9P9g kaNXpfoEQB5mmgt9LoYH3pR5GB3v+D5WgOQkOlTACzKZODywKeCgN/fCJejCa2YL7C6m EuyPPPWx2lYZCCpmNF7aTOVFzmzAeHKX7QvJ2WI3LXWSq6BsGHtgOeTtuZ5xByM5hJ/c 3topIy18stYrkfvrYRGnFTk2dDQj6dcc5ZZZhodNwJTgMnEMIuH8CRCIc6Xj/Ac5XXKS Lys68RV/tWshmsbCXYV5FsOtleZ8NHJlJSq9L8KNLpD8Y7djV6hT/OzyXmNIfoETueSL ES4Q== 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=EvbW1gaMEShMzK91x3sz003pknPcT/UGnfug8AZOG8Q=; b=WwF7kUQ8rFte2VC6WIOq+yfpvPj/A48dfwwyeiJrhwnJe0KcVlgRdyxeALKQkVU2Ji SCx+wgQCvADnnkcTYrTO4vkF9DVG3Dt0rKQn6AutKa5im/gZ1Q8qf6mknrSFgmZZYlQ0 2CeOtyjPF3KspM+nBN04rLOINak9hZWzHym+gZLdNuggNnXenlbA+ZtwU2OBEOs+2cTK GNiEU+TGHXP5ygZr3/S6vkSPaPsi1RE5CbVIWH1OcXCRUcY2rSWvhO+m7zyZNxcD4APU llc7+R7TaxzqESfZntFmyGI1W2qPJKBe0BVK+QIgIsw44/A+j8IRIZyPOTDtMC6CHNU5 0e6Q== X-Gm-Message-State: AOAM533n2YloBWd+WMzBZJoT3XXz/gDwrBbk5jSVUarltWTeY7OK8/Lb SpY3v52EKime5BhdBoVYI4sy8Q== X-Received: by 2002:adf:c64d:: with SMTP id u13mr15254648wrg.114.1598434454816; Wed, 26 Aug 2020 02:34:14 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id u3sm3978759wml.44.2020.08.26.02.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 02:34:14 -0700 (PDT) From: Lee Jones To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Lee Jones , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com Subject: [PATCH 08/30] wireless: broadcom: brcmsmac: phy_cmn: Remove a unused variables 'vbat' and 'temp' Date: Wed, 26 Aug 2020 10:33:39 +0100 Message-Id: <20200826093401.1458456-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200826093401.1458456-1-lee.jones@linaro.org> References: <20200826093401.1458456-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes the following W=1 kernel build warning(s): In file included from drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c:12: drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c: In function ‘wlc_phy_upd_env_txpwr_rate_limits’: drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c:1516:11: warning: variable ‘vbat’ set but not used [-Wunused-but-set-variable] drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c:1516:5: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable] Cc: Arend van Spriel Cc: Franky Lin Cc: Hante Meuleman Cc: Chi-Hsien Lin Cc: Wright Feng Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: brcm80211-dev-list.pdl@broadcom.com Cc: brcm80211-dev-list@cypress.com Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- .../net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c index 2441714169de1..ccc621b8ed9f2 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c @@ -1513,14 +1513,12 @@ static s8 wlc_phy_env_measure_temperature(struct brcms_phy *pi) static void wlc_phy_upd_env_txpwr_rate_limits(struct brcms_phy *pi, u32 band) { u8 i; - s8 temp, vbat; for (i = 0; i < TXP_NUM_RATES; i++) pi->txpwr_env_limit[i] = BRCMS_TXPWR_MAX; - vbat = wlc_phy_env_measure_vbat(pi); - temp = wlc_phy_env_measure_temperature(pi); - + wlc_phy_env_measure_vbat(pi); + wlc_phy_env_measure_temperature(pi); } static s8