Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7894998pxb; Fri, 19 Feb 2021 02:02:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgGSFcrCe7RB343bG+R28mIayoomRkKGE1El/Ldb0sI6+l0uxAO8Dx6u/UYOnUxu1teCLI X-Received: by 2002:a17:907:2da5:: with SMTP id gt37mr6716504ejc.324.1613728946249; Fri, 19 Feb 2021 02:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613728946; cv=none; d=google.com; s=arc-20160816; b=A+q12zOMZrHhrVZaFt17xWvQnxkuWslS0KIz4deDfFVnLLlUGtHYyobM6uNqRIclx5 Mhlo/GM3dmWH109V+udsWrhsehChqDBQ+i3+Rt7LfD6CCs1yOrdk1Kcf7ssUB456lJg4 0M7JHbEMxiH9Kvrbxd1QiaFMoxv35cp4fbBE7iy4dQFVnERcX2RaMedEyGCvakwIHkYk dpU17YjbuG/TRwlem1DLHtRZfgtPn99G/CkUulV71P3CBGLPw9bwBEPb7bbDAyTI03zZ d+XW8wWsw7iIZiUwzvylikVhWR3TsEVMosQ1oNTMA5XWrCsGQLBO1W5PKvi3wW/5rNjW z/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=J6y2bG1POS7Jg31DpPEznxVdrrSqnYNCQw/xGiCOGKQ=; b=BGR5pr31Ceyberal1oC6l4yonQegxPEDKrLFzg/Cu4nNHrYlOwGeVLykcKWEru3AMJ ZhdNWAKKnPqhjGtwSOZGVPqwxfKj3o1/Ccge5mpDI54g1ptl63us3qUib3RRgfu6NwD3 OKwAcA2hc0NRiGgSrDj61+nDG5D8zVshYYH0jSXMd9nhPfQORpS3dN6sVDidXFgGDUrj GVC+V9kRTOre/r+5Jfa/1NAl/5XZMwm+Pnd+oHlkkAqN+0qrWWuZob+NMyBP900YPBHq fauObRPIFSnacWkTlpzPlPlzAypXxIOHURmoQ/C1cNIwtiyUXFBIRGNHx8WzD7uftH1P VOww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si5906353edd.436.2021.02.19.02.01.56; Fri, 19 Feb 2021 02:02:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbhBSJ6u (ORCPT + 99 others); Fri, 19 Feb 2021 04:58:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhBSJ6s (ORCPT ); Fri, 19 Feb 2021 04:58:48 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BFAC061574 for ; Fri, 19 Feb 2021 01:58:07 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lD2Xl-005Hiu-LW; Fri, 19 Feb 2021 10:57:49 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , kernel test robot Subject: [PATCH] mac80211: minstrel_ht: remove unused variable 'mg' Date: Fri, 19 Feb 2021 10:57:45 +0100 Message-Id: <20210219105744.f2538a80f6cf.I3d53554c158d5b896ac07ea546bceac67372ec28@changeid> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg This probably came in through some refactoring and what is now a call to minstrel_ht_group_min_rate_offset(), remove the unused variable. Reported-by: kernel test robot Signed-off-by: Johannes Berg --- net/mac80211/rc80211_minstrel_ht.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 2f44f4919789..ecad9b10984f 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -805,7 +805,6 @@ minstrel_ht_group_min_rate_offset(struct minstrel_ht_sta *mi, int group, static u16 minstrel_ht_next_inc_rate(struct minstrel_ht_sta *mi, u32 fast_rate_dur) { - struct minstrel_mcs_group_data *mg; u8 type = MINSTREL_SAMPLE_TYPE_INC; int i, index = 0; u8 group; @@ -813,7 +812,6 @@ minstrel_ht_next_inc_rate(struct minstrel_ht_sta *mi, u32 fast_rate_dur) group = mi->sample[type].sample_group; for (i = 0; i < ARRAY_SIZE(minstrel_mcs_groups); i++) { group = (group + 1) % ARRAY_SIZE(minstrel_mcs_groups); - mg = &mi->groups[group]; index = minstrel_ht_group_min_rate_offset(mi, group, fast_rate_dur); -- 2.26.2