From patchwork Wed Aug 26 09:33:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 248394 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp4157177ils; Wed, 26 Aug 2020 02:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2r4ketQ/WsCNEwziPgKMipQT5Whz7nkV75B0++PhLuPIRgLg91q0wOH5O/BN8GYHfnQnT X-Received: by 2002:a17:906:40e:: with SMTP id d14mr10808326eja.455.1598434712622; Wed, 26 Aug 2020 02:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598434712; cv=none; d=google.com; s=arc-20160816; b=k3ue8GzhzrxWnTwesAUxEBmPdCkfb5WJ7LEJUjMFD12/VKl+kSolBLAh+1YGZ0Xnwh zQiBvyDYYNGTTzqCKYfKCT1liuNXxhaLYEP6rA6QMSwr9/l1jBs0PRDxKaekyeHIGrEh V0m3TrguhXaJz9MnOG6eYqdgSurnLzeEjE0jVuFPd4DWXOjmRLeEXDiCU/hVw1J0J99m 60XAzPrT14G5h4eBs6+P2vHvSDFKRJrSeehBhE0h5TUxt8EqXSkoqqzURdBjU49Ndc3z P3Me2nLdg6lEedcRonDRWE5YMDlbYisxu+QGsGzekdxpSGLmP3v0zA4f7KLpl23Y/B31 Yn1Q== 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=qElmRnHsar7tn4JV1a4MOU4ECliWfWuqmHMN13MnixU=; b=jIHg4KzXW6Xj6Oei8/MoX3R2t6vyUnHbonjzZjKfwuETbXc9SrktK0UK+UoYnPsjiP 3V5LajHPUXb+qZHEYPmEZNrgNRwRggKDyuNjMn4MjtnFFgu7U0Bzji2HdjTOAgxYGWlS VWhgNuRxbJ1WHaCXHeFMwbk2/C1iRqsviPBUWLfzRWd2zdwSZuFPlLnPlGu+QuZhz1dq ChJvyDuBkZiKwq4M80J/IxwKaOoy3hs/GR5VyU0zKkvf2o3zuox3tjClm5PTGC0eBxe0 48PlxHwSsn+6OjTVd/2kNIWKsg3wM4g3ddLkPK3TBwpdx2Bd4Gg5ODUrMipzXhKxHpEJ r88w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBwJBdkQ; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 i22si1281003eja.737.2020.08.26.02.38.32; Wed, 26 Aug 2020 02:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=PBwJBdkQ; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728646AbgHZJi2 (ORCPT + 9 others); Wed, 26 Aug 2020 05:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728324AbgHZJeq (ORCPT ); Wed, 26 Aug 2020 05:34:46 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC26CC061342 for ; Wed, 26 Aug 2020 02:34:23 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id k20so1066143wmi.5 for ; Wed, 26 Aug 2020 02:34:23 -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=qElmRnHsar7tn4JV1a4MOU4ECliWfWuqmHMN13MnixU=; b=PBwJBdkQlk8+/glvNbz0NN9mU9pLT9iRphNJRoCwUkB7TBfg41MLFYDe9JWU4G4eSz iCZgPMD8KHcs2xTrORTWg9H0xYW4xLdiY/VdZDgZ58k8y9+IngWN8V66vafUV9a4j8mv ZMgrcGPYBYdj3/3d1SQ7JqQCHwSZE6fkwTf4ry/wbHo3DGWpzQWmmveF9yLR8HIBxX6E 4txc7BApPS000GyfapvamEZqKo9PpsZ7m1dTFY4Uj144iF4cUUa3nKtjQH39JzVPDoIQ XuwF7EN1CCGOSGA3e6rv9sCVtYV0zOw0RAbFRfsqExehODp8gWDYcuaCSbbz5U1NRWV+ aX5A== 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=qElmRnHsar7tn4JV1a4MOU4ECliWfWuqmHMN13MnixU=; b=IXF6/0KJzR+Tqrov0OjfhUF0IMzKYwNzFIWpO+arrFu8zdTYXyvG+OFFTJDKAr7qJd BsOYgbVYX0hLbSM2QxTf+QNMm8m4wsMejLtOCCBnyJKR7zrLvdGMAK5Kg6uDlDAqowu8 3bKIx7GbI02NSCikdrh+ODzOBOZD47GtH6jMfVRw2lgzUBx+lJG4Uo1LlcPhLLzxe97S Z+3ygX1lhxL4PD7ml4PMLebHqcR8W7337ZAYHs7PeWuD43LY0Fsz72hYMigYG5WyiMdX GTq4HT9Z0XfPI+hlLSB+WqaiKxS3lAsgKtngxRH3Z8rxpE+/MqOjYFg6cfnL0/P3AWF7 uiqw== X-Gm-Message-State: AOAM531zpIcys+Zwqu4ZKwrv4PGcwfhnbfgJEwJaRrQBmtp9bce6iax4 yuXX/NyutvONfkfCBSdfw2Pj6g== X-Received: by 2002:a1c:96c5:: with SMTP id y188mr6392874wmd.72.1598434462418; Wed, 26 Aug 2020 02:34:22 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id u3sm3978759wml.44.2020.08.26.02.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 02:34:21 -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 Subject: [PATCH 14/30] wireless: ath: ath6kl: wmi: Remove unused variable 'rate' Date: Wed, 26 Aug 2020 10:33:45 +0100 Message-Id: <20200826093401.1458456-15-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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/ath/ath6kl/wmi.c: In function ‘ath6kl_wmi_bitrate_reply_rx’: drivers/net/wireless/ath/ath6kl/wmi.c:1204:6: warning: variable ‘rate’ set but not used [-Wunused-but-set-variable] Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/ath/ath6kl/wmi.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 6885d2ded53a8..a4339cca661f0 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -1201,8 +1201,7 @@ static int ath6kl_wmi_pstream_timeout_event_rx(struct wmi *wmi, u8 *datap, static int ath6kl_wmi_bitrate_reply_rx(struct wmi *wmi, u8 *datap, int len) { struct wmi_bit_rate_reply *reply; - s32 rate; - u32 sgi, index; + u32 index; if (len < sizeof(struct wmi_bit_rate_reply)) return -EINVAL; @@ -1211,15 +1210,10 @@ static int ath6kl_wmi_bitrate_reply_rx(struct wmi *wmi, u8 *datap, int len) ath6kl_dbg(ATH6KL_DBG_WMI, "rateindex %d\n", reply->rate_index); - if (reply->rate_index == (s8) RATE_AUTO) { - rate = RATE_AUTO; - } else { + if (reply->rate_index != (s8) RATE_AUTO) { index = reply->rate_index & 0x7f; if (WARN_ON_ONCE(index > (RATE_MCS_7_40 + 1))) return -EINVAL; - - sgi = (reply->rate_index & 0x80) ? 1 : 0; - rate = wmi_rate_tbl[index][sgi]; } ath6kl_wakeup_event(wmi->parent_dev);