Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5446417rdb; Wed, 13 Dec 2023 08:53:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEd5WrHMS66xVkJ1Xn4wfqOsput+o3P5TL4EYZ1bz0lfj8ABECJGHszHy2FoDHqliKhadWZ X-Received: by 2002:a05:6a20:1b26:b0:191:60f3:8b32 with SMTP id ch38-20020a056a201b2600b0019160f38b32mr2107015pzb.76.1702486380026; Wed, 13 Dec 2023 08:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702486380; cv=none; d=google.com; s=arc-20160816; b=lxY79eZm40rHbTMdJbMtqAUiZs47QvJFgAlDvfqM7MJV0D5CxnFkAExyRTZjLamw3K nPcy8CZe/W1tGO4kSHvwksPD8B1mMjJjcMBuJwX8iwbFsLADI0sdsJBwCs3ILeQ60lS8 pq7Fdhx2QD/ObkWfboJzsIpBmXoYzr9SiIdAbCDh1mRoQhNeUskwMyvvpuclFHCospHI cN/bHwaRt0q0e+GJk/haenvMGggw1KxGvxpNIyZlBgq8znvVixvpcHtdnQ+mSb/Xn4bx uRiljmm5KPcZwC4xtcSqiDB+z+wMux4K1URLIMHvj+VeeM7KcyJM4ivpTNn0Do+BL2em 6BQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=QpGgf4XklN8es0KYbSGNNm5QQAnGIuhX/jA7OD+Idx8=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=AFEWQFd8PJr7Snvszx+8CWNxt8tXyXFDOkEz4jwHwA5XNrZUdBuJ31ppgVcGk3cqJc 34d7XPd+y/gWIdze79fKf7JkxOQUfCe9Ku8BC2rGmyvUTdW1Zjb6M8bh7QYYN9PK16XP CTZ6OJlqyILOHDASJpbBFFm5jmfxRTHXSfHhe5ntIRYa3Pb5ADUPgl+lWF0oBth91gBU yr2S0/VM29UM3aVyxkfLuAvKJ9S4AdCLHrjUq5H69RE1mLdfM5Yt3kO3onPU4PqaVYMQ S6qnwVbLUztkY7Hh7D2j3BflCOutiMZfK1R3/LpdFzXEoWdDa86FJI4r3HlU4FWDwW/F HI4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JyTER3Xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id eg10-20020a056a00800a00b006ce7e551b5csi9735647pfb.402.2023.12.13.08.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:53:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JyTER3Xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3C11881ADCED; Wed, 13 Dec 2023 08:52:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379150AbjLMQwl (ORCPT + 99 others); Wed, 13 Dec 2023 11:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378146AbjLMQwh (ORCPT ); Wed, 13 Dec 2023 11:52:37 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20367112 for ; Wed, 13 Dec 2023 08:52:42 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-551e19beb35so309869a12.0 for ; Wed, 13 Dec 2023 08:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702486360; x=1703091160; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QpGgf4XklN8es0KYbSGNNm5QQAnGIuhX/jA7OD+Idx8=; b=JyTER3Xcx09Fxzd3f3IDJYzmcmB+LSCPFuBDGR018QLniZuoIGbOPl9sG72gABeMXy WkN/RG628x3hTo9bS6e7TCNaSRWZ7F5YzEIWnBtOgbybnyzJSmBYCTPLECIljycIIqdu lyPUKnmX22JUEPLDVBMvNvfFLrTWn+pWezJe3rZP5odI9aHFMNPVUzvL8LvdZKMfD+1n gOqZFTPQ8drYEfwaotRkP1Hin7MgYHoz+tgqmi96Bmb0eKUVgOZ9D+IjauKjOhwucT17 /omU/uQV/oy9RqMzyK1mT1ksgHvZN0m0VVxLkKbC4AeK10M0QwcM6j8G5dX5YPgT9we1 fQ3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702486360; x=1703091160; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QpGgf4XklN8es0KYbSGNNm5QQAnGIuhX/jA7OD+Idx8=; b=jHvlJyHnjh35wM6ymoLKA/gXrBpB4HJm95qxurrZxi/jYFxC0isusI8gS727/cwbau B0p1ReWGMbnN3U6d7HtkCNkSbyQfbWiUJojg3FCo92m2kxDYZQ44CrdpTP1sMH3LvCiu lzJe4lqfBMnahcEfvkcZCePp6ARiwSeawpeyofL6fzAuCmzvUjsxL2YEMlJ2s5Fme3tj upe+nGoySU+XoEtOb5ptjfTiPpj2dTj66NE2vOEKjoYie7gUEAH5bOBPZVFu5H7vkE62 4DKF4nqZcY+3GzeQIfR6ofnpcYc4d6+OvY9i/PYNw345ap8J348n4lN0mXXHiyxjetEG RbAw== X-Gm-Message-State: AOJu0Yyu+4dDW1aqd/Xtj7T5CmSlHLRzwVCnFZpy3QvhItW14EloZBPk Qff+wbvrmaQwotKqxFcTxneQb1gp0p8= X-Received: by 2002:a50:bae9:0:b0:552:6202:41e1 with SMTP id x96-20020a50bae9000000b00552620241e1mr31473ede.1.1702486360316; Wed, 13 Dec 2023 08:52:40 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id l12-20020a50cbcc000000b0054b53aacd86sm5771950edi.65.2023.12.13.08.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:52:40 -0800 (PST) Date: Wed, 13 Dec 2023 17:52:38 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] staging: rtl8192e: Remove variable ht_info->RT2RT_HT_Mode Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:52:56 -0800 (PST) Remove variable ht_info->RT2RT_HT_Mode as it is always set but never evaluated. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 - drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ---- 3 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 72e89ccfb184..bef042233117 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -287,7 +287,6 @@ static void _rtl92e_update_beacon(void *data) if (ieee->ht_info->current_ht_support) HT_update_self_and_peer_setting(ieee, net); ieee->ht_info->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time; - ieee->ht_info->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode; _rtl92e_update_cap(dev, net->capability); } diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index 1da56f1c04eb..315905fa4b2c 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -113,7 +113,6 @@ struct rt_hi_throughput { u8 cur_tx_bw40mhz; u8 sw_bw_in_progress; u8 reg_rt2rt_aggregation; - u8 RT2RT_HT_Mode; u8 current_rt2rt_aggregation; u8 current_rt2rt_long_slot_time; u8 sz_rt2rt_agg_buf[10]; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 14e6f46a65ed..6bd4afe32f61 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -540,7 +540,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_long_slot_time = false; - ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0; ht_info->iot_peer = 0; ht_info->iot_action = 0; @@ -601,11 +600,9 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pNetwork->bssht.bd_rt2rt_aggregation; ht_info->current_rt2rt_long_slot_time = pNetwork->bssht.bd_rt2rt_long_slot_time; - ht_info->RT2RT_HT_Mode = pNetwork->bssht.rt2rt_ht_mode; } else { ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_long_slot_time = false; - ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0; } ht_iot_peer_determine(ieee); @@ -621,7 +618,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, ht_info->current_ht_support = false; ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_long_slot_time = false; - ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0; ht_info->iot_action = 0; ht_info->iot_ra_func = 0; -- 2.43.0