Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5446555rdb; Wed, 13 Dec 2023 08:53:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi3QLz1xaecdrxJEcX/EJIc98k+l4RwuEuk8kr/afnDvpC7KBlt1mWTcDYD3Jr/hwiMosd X-Received: by 2002:a17:903:41ce:b0:1d0:9c03:a7dc with SMTP id u14-20020a17090341ce00b001d09c03a7dcmr5140527ple.100.1702486397828; Wed, 13 Dec 2023 08:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702486397; cv=none; d=google.com; s=arc-20160816; b=VwSJiTRe0iO71et1aQr9IzGqwVbt5UO0MgGtUkLQIQqb4Km9HO8YF0gUWgEQozz/qM APuFX+3AO5Ovi322hjtj15tFcPx4h9g3HCjK2ey/HezLbwBnnrMz/MuE/5Ra3E/ze4yd 14pw8vNqOqUsnbZptr/L/K9OKj6Qoq5M0Vfu9YDWfbCnfx0231/QJi5pRoPamuz3r1C7 h1Pag+KoVBX8mEiER7b/dqu2hlHfPmSCC/WkTxSy5Hy71Mv5VGv8r8MOfztiJRcLSqo8 tKHM791QFwBryzE7NOghV7qpomUY6j43TpkSkOEFHHZNfKEwiq3efC+9x6cN5CE+RTg9 5L3Q== 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=FS9s22OYVyAuBMFkyAlKFllCNEacvvjLW0t9zMiOW0M=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=dD7PHovpCx5nab/Q6fA0D5Kv5oFDHj8g1HonwOC9FRcEkw/vWw56PKanwejXDi6w5O CRudT9eRt0i4uizDhihPeOcoY+6TSyMxNrWufJAslj4ijRiWqImaMEqDaQ+j8dqD34Bp 774BcKZ56bwf2L3K9pWjnwUmWawpAsINMjcwacNJ3warFS00S+uQzfewBjuXfny8Okkl mI3FAv6O286BLX46HZLXERzGcXjcubXLz+SA1wMXW1ZiR0DTs8idyXtDjwPWi15trKjf ixXanV4a+wTbUCJqKydyq0vTS9jP0/xndCznzsesfd9BqEnPD2ytGXGB5sQCr8ZJJ2SH iLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fw3kWsCy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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. [23.128.96.36]) by mx.google.com with ESMTPS id b7-20020a170902d88700b001d0bcb88302si9755875plz.580.2023.12.13.08.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fw3kWsCy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 482D381ADCF8; Wed, 13 Dec 2023 08:53:15 -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 S235418AbjLMQw7 (ORCPT + 99 others); Wed, 13 Dec 2023 11:52:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235424AbjLMQww (ORCPT ); Wed, 13 Dec 2023 11:52:52 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D63B9 for ; Wed, 13 Dec 2023 08:52:58 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54ce02c1ba2so1600332a12.0 for ; Wed, 13 Dec 2023 08:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702486377; x=1703091177; 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=FS9s22OYVyAuBMFkyAlKFllCNEacvvjLW0t9zMiOW0M=; b=fw3kWsCypVk/cIonioXU38WAc6Hyng7TE4DZs2KXNyNIb9NxGe/Jhsq0hiSkoSvU+C AcxddEGYWj9tl1CCetylXwjnLDigE3Rp98g7EZ7GrKGrEVtnEu8khFKcwxeV+CBl/3Xq 1eiszfl8qptEgrLKP2Ql5FQ9DXvf3sWLUOmIj8HH6KFxh27lBb2VIUrwSzFSfdfjkGrd GVnaJrGPCLThDtwN5WZTgfEX7uRfKwaVKBWaBglDvsp7UImue+mwCkWWVTDG4dGeJ+ET j00oYpYfB14VC1f7qljKXBr0EWlaAOptyFVeVkbyj9e4zX/u+XZh+CBLp+094gvZ4/p2 iPug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702486377; x=1703091177; 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=FS9s22OYVyAuBMFkyAlKFllCNEacvvjLW0t9zMiOW0M=; b=qIDnURJ87UYKpwlXPY32ST6eR2CkRqDot/9ndysN/TEymGxOGAk42QQesNRmxlxSBQ lDzyd6Kq/yBj45Ueta0rSCSAdUAvUZkvUqbRLslBLcSyIqnSKoZVVckBK68r7EbMd26/ Qj4zTd7fM0ap+w7Jh+p/tb7RhJF1Letssqyr+1pxTI/YpNwBQ2GCtUIXoCTtQBAj1KZk 1gdYXiHLkdBMLF5eQWBuO0bmNoFX1rljCOZ4i8y2wmPjSmYiztzsdjYMOl4SolXUdbQI 518FN/lP48pp3ZqXVY0hA0dCoahZpiZQOEZy3KIcy4fDZfY5Rzc1N3q/R/wi7zTt3jGG fRdQ== X-Gm-Message-State: AOJu0YzpOD4nU7yS2v9QmoV7K9MAOX0XBKHquD6xyO6Dnct2KJrwcLyV g87pqJitlS7n6NEu5Tkyr4Y= X-Received: by 2002:a17:906:99cf:b0:a1c:5944:29bb with SMTP id s15-20020a17090699cf00b00a1c594429bbmr9082964ejn.7.1702486376863; Wed, 13 Dec 2023 08:52:56 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id sa16-20020a1709076d1000b00a1da72b8752sm8047775ejc.212.2023.12.13.08.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:52:56 -0800 (PST) Date: Wed, 13 Dec 2023 17:52:55 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] staging: rtl8192e: Remove constant variable reg_rx_reorder_enable 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:53:15 -0800 (PST) Remove constant variable reg_rx_reorder_enable and replace it at the place of usage with the value. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index 514ac9e1f3f8..2911ea82dd17 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -115,7 +115,6 @@ struct rt_hi_throughput { u8 current_rt2rt_aggregation; u8 current_rt2rt_long_slot_time; u8 sz_rt2rt_agg_buf[10]; - u8 reg_rx_reorder_enable; u8 cur_rx_reorder_enable; u8 rx_reorder_win_size; u8 rx_reorder_pending_time; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index d9561e3a76d6..00bf5c706157 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -79,7 +79,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) ieee->tx_enable_fw_calc_dur = 1; - ht_info->reg_rx_reorder_enable = 1; ht_info->rx_reorder_win_size = 64; ht_info->rx_reorder_pending_time = 30; } @@ -484,7 +483,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) { ht_info->current_ampdu_enable = false; } - ht_info->cur_rx_reorder_enable = ht_info->reg_rx_reorder_enable; + ht_info->cur_rx_reorder_enable = 1; if (pPeerHTCap->MCS[0] == 0) pPeerHTCap->MCS[0] = 0xff; -- 2.43.0