From patchwork Wed Aug 19 07:23:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247917 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp241770ils; Wed, 19 Aug 2020 00:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNNvtjn/q+sHw2bEM57eAzi9h3mpw95iCv8Nyz06nXoOfL28WRxte3xsAreKkGVzK6QQro X-Received: by 2002:a50:fa94:: with SMTP id w20mr24189652edr.82.1597821933348; Wed, 19 Aug 2020 00:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597821933; cv=none; d=google.com; s=arc-20160816; b=r/QT/ZAHs2a1d0hwwnDNnRqWNJQ5VCYEosOkZ4usxZ3gxkAdr19pDAjfFuB0L9vJAX iyYwzUaMHw/9NFBnP/Y8/Rl1dog1MrS+izfJnaXTh7wypVYYlDcUvOpp0hjGvCq2+Eju Z3fuYo/DuQ5OLTHxKm4JTJ/MOdnccBlqeoCQIaeF4mueiBvF+b2OrJ6N4n8YqHO8/D/9 3vKoxikvq9hCRBSPUyhAelaPbIXVolZWxyS4VhE71dn7baoxSo1r8uN3oSSEs6S+kxxa f94pTiV7dcCEhR4oCjNsp9PCCQJgG4xtRILBinxCPKx2iBG+sENBdDSwHEVkGeuDB7Wb C1Rg== 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=bfE7YUSssid0azom0g6vClz47uYcy21+hGTRmt0JTBI=; b=xIlju+VcU4RXUmaoKOZ/fcpPkbfGC9w5KrlJjU/QuKTHadkuguRlnaYREsV2fU7z6S s5xQC9Vm/lQN6O1pySCR0hqQ2b7O+ZT5u6FtGx6+sKQ64oF11VY5XOX29kc1tNw9KCSF 7HWsQ0+1NhxTZXYyhmdTGfpL6/hkRlmx3vlJhLpUs2WeCuVtus3/k6hkhkV8+/T4YJjX tWpaY08pBU4LHtVywvLPeHZaj1vlVSZmObCHz0UR3+Y7K183tWJcI18Z/WQwFiSRIIPg /nbW4JcM80+IEIIYcYqNDP+13S0Wigg7oB/OvEoQ9H70FTU4UNUXAdO/zvy6JJ4byc59 TSEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dxRVNmi7; 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 df1si14689098edb.78.2020.08.19.00.25.33; Wed, 19 Aug 2020 00:25:33 -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=dxRVNmi7; 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 S1727970AbgHSHZa (ORCPT + 2 others); Wed, 19 Aug 2020 03:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727838AbgHSHYt (ORCPT ); Wed, 19 Aug 2020 03:24:49 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B297C061363 for ; Wed, 19 Aug 2020 00:24:22 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id f1so20480205wro.2 for ; Wed, 19 Aug 2020 00:24:22 -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=bfE7YUSssid0azom0g6vClz47uYcy21+hGTRmt0JTBI=; b=dxRVNmi7LtW/7lmGHRjFCjuxQP1F9s/8kvSh4etZPkfq8exwIAqqPNFL0aK3SmVfDB fHrTrRMVtzuGPBrfz4+XBqHTclM6+fKesqjtjlM2VmRdsOTqBfwh5E+hUcfV6zwLp92b fH2nmZpRtlLMovLVRE2Q9NvPh5Gm4KCpaSZpkxEVqoFQX8WhvR+uCaJn+AOy2H2IRgBE idK19g+Z6/PGsCXH8WA1yRYhKbziLejExH4d1tqRZ3+3G4i2NlG5KHwpM2tG4KFI77hR IcGyMdysPTTn9rGjtpo4ymfWtopmI6cAdfums19zH6QW4KngP6oO2kQIIXzJgAvGGYUb Tb2w== 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=bfE7YUSssid0azom0g6vClz47uYcy21+hGTRmt0JTBI=; b=b2YUZD5eiz/rfgomkyFFSD/pCgVuE0G+pEpAu2VtzQNkU8pPTLK/Q3OJfxtuQ6E/Wh +XJcOzoS+KUMbjqsrwEGsCzOCPyaQmawLeljQjUdFoYpk9mdGJH2a9a5966Fnly78MYM hoe3QFRMXKGJMR46deWwN6b3hOx3VmDU6WmPtQ5hmR61jCKOPEQBUkiHVTvMBxijRcPe qU8Y2WgWIfES2Wc2KoVVT+0OkZCj7ypjRe2pS2ScwbyFrHovePSvcjdgcDopykaeCCSK 92/97z3XKQnXjaYI0Da21uLocKbUzA0d+Al49AjqTmkncMycng1hbfjYq9gUhMBAjBQN dRog== X-Gm-Message-State: AOAM533K6kUTL6H69omaVC+t6bP7DAbV82BZKPeJsDUgnywyJwutZ7o5 95j2ATUh9pnAjkEQ8Oov08lPYw== X-Received: by 2002:a5d:6401:: with SMTP id z1mr23375743wru.272.1597821861337; Wed, 19 Aug 2020 00:24:21 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id c145sm3795808wmd.7.2020.08.19.00.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 00:24:20 -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 , Solomon Peachy , Dmitry Tarnyagin Subject: [PATCH 13/28] wireless: st: cw1200: wsm: Remove 'dummy' variables Date: Wed, 19 Aug 2020 08:23:47 +0100 Message-Id: <20200819072402.3085022-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200819072402.3085022-1-lee.jones@linaro.org> References: <20200819072402.3085022-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 They're never read, so there is no reason for them to exist. They just cause the compiler to complain. Fixes the following W=1 kernel build warning(s): drivers/net/wireless/st/cw1200/wsm.c: In function ‘wsm_ba_timeout_indication’: drivers/net/wireless/st/cw1200/wsm.c:1033:5: warning: variable ‘dummy2’ set but not used [-Wunused-but-set-variable] drivers/net/wireless/st/cw1200/wsm.c:1031:6: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] Cc: Solomon Peachy Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Dmitry Tarnyagin Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/st/cw1200/wsm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/st/cw1200/wsm.c b/drivers/net/wireless/st/cw1200/wsm.c index c86f31dcc9817..d9b6147bbb528 100644 --- a/drivers/net/wireless/st/cw1200/wsm.c +++ b/drivers/net/wireless/st/cw1200/wsm.c @@ -1028,14 +1028,12 @@ static int wsm_find_complete_indication(struct cw1200_common *priv, static int wsm_ba_timeout_indication(struct cw1200_common *priv, struct wsm_buf *buf) { - u32 dummy; u8 tid; - u8 dummy2; u8 addr[ETH_ALEN]; - dummy = WSM_GET32(buf); + WSM_GET32(buf); tid = WSM_GET8(buf); - dummy2 = WSM_GET8(buf); + WSM_GET8(buf); WSM_GET(buf, addr, ETH_ALEN); pr_info("BlockACK timeout, tid %d, addr %pM\n",