From patchwork Thu Sep 10 06:54:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 249559 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp475265ilk; Thu, 10 Sep 2020 00:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNuYm2zSA8z9a/rlc1vf0dLT9txtgy5tW37R0UzVUNLE8rmsl+M6qx9eFJhKoG7n8+id5V X-Received: by 2002:a17:906:3785:: with SMTP id n5mr7848968ejc.218.1599721895007; Thu, 10 Sep 2020 00:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599721895; cv=none; d=google.com; s=arc-20160816; b=H6qRVYZuda4o9T07a0KMpYB7Oa94B4NbbXyk4SIagMIcb3g2jHjqgeCkGTQu4O9c7v VNhJfhglZb2ugpwp7FDwD2gfBZZp0ZGfEO+6OjLKgRVYMs5DawLyRcnC5mSMjs7fCdt3 uRivYEHRDqmf8bnx/5BJePHypT7snbi+FxF/jzBqW6wZYBCDj/OP44JVJ2qrwhlsFn9r ByPY2nIowGGuC2SmTid3Ykh+L5JoNxDQXrXOvex2erCO4D7jQlEjDaRNhzLw/bUnslbl BsOXCWOLcHWyDn/YgH9VMemFmAZo9g9PNvijwe4/y7+wbSpp2YZXwr6QfIxWHLqP7a+f C0zA== 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=TaMCCZsJkQvemZYACYL5Dt5TMehAjq1gNnGL3BPBRLBgLWssye1QGI60yZZmmpFEPd qxU21INWQJUQexGCY7/C+cqwhGYjkhwSIUNa+uPkqLgx2R8GhbMWJaLqMggyvErbVOep M4Rn815r9lta1dG77znbMRrJ8IJRzfcCYjFIrISyJBb71J1g1QM/oMNTLJA7mG6pp3OO FpZi9HAVrNxqAgZi4IjTQVnMQHhMGQQg43lQ2b8yFdD06X/u39GX1MmsMkG9/JVsWLxv jN0qBOlvmSnO4+AT02XN/gViTgdkRGq4fuXpnsgb+y0iOzZL6cXKXUY3X0tCmfj9VnPj p9AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ynl5uR9/"; 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 ck10si2920231ejb.167.2020.09.10.00.11.34; Thu, 10 Sep 2020 00:11:34 -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="ynl5uR9/"; 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 S1730410AbgIJHLc (ORCPT + 2 others); Thu, 10 Sep 2020 03:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729781AbgIJG7l (ORCPT ); Thu, 10 Sep 2020 02:59:41 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DADC061361 for ; Wed, 9 Sep 2020 23:55:21 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id q9so4486034wmj.2 for ; Wed, 09 Sep 2020 23:55:21 -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=ynl5uR9/TghAML8h3nkWxFysaN59Ld5+yQaEG9uUHi0tVn58MpWSSTN1nZwEJbNnDt zWqNp0B8x8emHhs6TS0WXNWn1E5ax8L3pGLwjHANK9SbqQxYUv3e0h7lAi3fIcFcyuRh 2eMaUmYBb7K568PkAqSAY68HyUmV5QoutOvE0qqm8zkOpeC4+dqqryExT2Qa7Fu2sLjE gExMNSoYwJUCvSnA2GEyFGcZqshoOWH1Mj+diqfyBGMDZgsYOt8btBL3Nbqv7mRVZXIb 7tsxg5OcMl2i5Ap+bzm4/vhiHL9Hf7gz7rH1pmjkJ+fCfpLw8Qj9M4Wn/b6QUPYdswDk stRg== 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=bEei6sRiCJaH9yHGDk0fpzoNtBLAOlRf+AbXnKPeb2snOdDtQpciXpmNUd1iqBLfTo Rh2OmuuoH03IvJOFpeskZJl84q9h2IcwphRLYkhWEDhbmUolwKli1tocyKqr53NJS/hj fqMWD5VMkXUSFFV1gP2gV1hZVDWCtNzLpQhVgMBMyxkoF3ST+xzFWohSVCnMRtvBlRFH lXLITF/ZL7W0XdkZ4Mn6VlSUCBRYoW4welkVwnnRntdm8GYCUTM4U8WGXltC89rBkG/q 7n/JpSL28Gm4+Nf4rhIUS++NJO8bFwOfbZ4azut+HIP0RM1jCUC5mjACPoGhOTGbqCkz jYug== X-Gm-Message-State: AOAM5305U6Sriv1RN6IQt2JTcSzvRs4H9W1m9K4PfkkX6LQZoz2vOq/S c+wace3+/ON7vDmBr5MSIrQe9A== X-Received: by 2002:a05:600c:2183:: with SMTP id e3mr7393106wme.49.1599720920090; Wed, 09 Sep 2020 23:55:20 -0700 (PDT) Received: from dell.default ([91.110.221.246]) by smtp.gmail.com with ESMTPSA id m3sm2444028wme.31.2020.09.09.23.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 23:55:19 -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 23/29] ath6kl: wmi: Remove unused variable 'rate' Date: Thu, 10 Sep 2020 07:54:25 +0100 Message-Id: <20200910065431.657636-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200910065431.657636-1-lee.jones@linaro.org> References: <20200910065431.657636-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): 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);