From patchwork Thu May 21 10:09:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1295072 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49SQMc6XGlz9sSf; Thu, 21 May 2020 20:09:32 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jbi8n-0001bg-0o; Thu, 21 May 2020 10:09:29 +0000 Received: from mail-pg1-f193.google.com ([209.85.215.193]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jbi8l-0001av-VH for kernel-team@lists.ubuntu.com; Thu, 21 May 2020 10:09:28 +0000 Received: by mail-pg1-f193.google.com with SMTP id u5so2957196pgn.5 for ; Thu, 21 May 2020 03:09:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ceomHoCF163+pKHFRKGPtCFFzu4Hyc/pmpz03VDtaGk=; b=gB26xkR06EZMyO1+/GhTiRXuC790TYaM5rn0AwbJZYNNiVEAtcaP/oQnTvWpn3RgDJ rj4G+7cvLHWYE5qS0SVjPcAlgJqojQRNR6NBoz3s+Cp6hlTmhw0XQ5fMJHjAEbiXLGCt BnR1iW5Mbr76vME/RRuoeX8ky3HysqwVX88/rqbrow6/E1msTv7voIsSRp6Y9EWzZ9Bf CIIPBQrzrJm0bOduGsvlUPfVXfv0ED6sXWMy1vStaoJmbBYhuyFLz2QqXV6jmjg9sbY0 0LhucUkch0Ru93eSosIHGJMQG18QekPEh/xtD4nNhcj4InAfg/wLgGugtg7GbZCGek0C lyKg== X-Gm-Message-State: AOAM5310fX8lgJ9Ren23btA79pkMyDMfqwcpC9hIpi4/j4HJDxWyiFY+ sEVqe2ZNSyBtGdEHPuFLWOYmhWV+kOw= X-Google-Smtp-Source: ABdhPJzqE5PfjwMcdiA6Tv4b4CRVk4THfPA/JoXNVM5DJO7PE6rVbdJbFwfIsSfjQfXEMk4epDyrhQ== X-Received: by 2002:a63:fc1b:: with SMTP id j27mr8552115pgi.251.1590055766064; Thu, 21 May 2020 03:09:26 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id u73sm4368107pfc.0.2020.05.21.03.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 03:09:25 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 3/4][SRU][B/E/F/OEM-OSP1-B] rtl8xxxu: remove set but not used variable 'rate_mask' Date: Thu, 21 May 2020 18:09:13 +0800 Message-Id: <20200521100914.2387535-4-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200521100914.2387535-1-vicamo.yang@canonical.com> References: <20200521100914.2387535-1-vicamo.yang@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: YueHaibing BugLink: https://bugs.launchpad.net/bugs/1878296 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4484:6: warning: variable rate_mask set but not used [-Wunused-but-set-variable] It is never used since commit a9bb0b515778 ("rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver") Signed-off-by: YueHaibing Signed-off-by: Kalle Valo (cherry picked from commit 4fcef86091327d92008ca0328d45075343e7edea) Signed-off-by: You-Sheng Yang --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 798983cc15f1..dac5995d5ad7 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4484,11 +4484,6 @@ static u16 rtl8xxxu_wireless_mode(struct ieee80211_hw *hw, struct ieee80211_sta *sta) { u16 network_type = WIRELESS_MODE_UNKNOWN; - u32 rate_mask; - - rate_mask = (sta->supp_rates[0] & 0xfff) | - (sta->ht_cap.mcs.rx_mask[0] << 12) | - (sta->ht_cap.mcs.rx_mask[0] << 20); if (hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) { if (sta->vht_cap.vht_supported)