From patchwork Wed Dec 13 16:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 178178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp7913332dys; Wed, 13 Dec 2023 08:51:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjiWp66M9tWLmWF78Z86+TgOR2y3n8g9SQ1jbARLO5M0Fjdr8YcLoODogz9v0hGIfH62Pc X-Received: by 2002:a17:90a:bb01:b0:286:a454:6b44 with SMTP id u1-20020a17090abb0100b00286a4546b44mr3878180pjr.27.1702486317113; Wed, 13 Dec 2023 08:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702486317; cv=none; d=google.com; s=arc-20160816; b=v5yNBo4jawXAQrzjqpV4F7eAzBl+FqGfrcJXj6Y6wYm7eMY7lL+JZj6U2tr+Un7mqD AzAUze/eQlY14lzpYxpntrNbJ1wLeX0Hph07VEpgGZRua7PSC9JBePc5emWkyI/lj/mf wa6r4zNLVSCD4vpbPZWC/2m4XeuxF559pei0um/NSjcw/MI+fp/sBq1M1vdV6co8H4pB X2lZAbxmr1DZMvxN67bKR5UZn1PWoYTqA6lVQCG4y4/8kzJKcoLVebCSfI9biSoYwTuC +m9foYWAPQLioV0GN4pXtBRvSuq7R/wjvLaLM2SYVayeMuuGDiIW9Rmoyv+upHClx00x bNLg== 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=kpLILZybMq8C7TrSiZZZTJ8Dy9Fx0ctVyqk92THT1n4=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=v6o6o/v3a9qcGIHUvE+GZGXZqGJRXZllNuasbnYO1R8yGSziFX8Ux1kGiis6xdXoDv RpOX7GKL8kM2MHUTFONmLdwfBL7TaFgiQ94n7JeReyRtHXUr09K1jSOeH4GJTBfUw0v1 lKnpRceLWCj3XyRD4iEAhwVITnElGqi6U1IUbpFd9XYPv08Z4rE/OMQUaOE3bq05FYPJ uTkBA3Zt/pLuhpdNSE7ukWLuSSeWStsIux/M8qXJ7JmcpGRxkWapXjtkrJcBrZneJtjA 2kLyP7DDrNNptZ/a4shsfP8EoWHXxBS0Cpe6EH5ZlJE3ISUhELKFbRWIJKjnPwZRtnXM qXNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="AWdW/78L"; 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p20-20020a17090ad31400b0028ae28b8128si1407461pju.11.2023.12.13.08.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:51:57 -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="AWdW/78L"; 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 0D39081AA51A; Wed, 13 Dec 2023 08:51:53 -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 S1378717AbjLMQvo (ORCPT + 99 others); Wed, 13 Dec 2023 11:51:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjLMQvm (ORCPT ); Wed, 13 Dec 2023 11:51:42 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE2EB9 for ; Wed, 13 Dec 2023 08:51:49 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50c0b80ca9cso1816255e87.0 for ; Wed, 13 Dec 2023 08:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702486307; x=1703091107; 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=kpLILZybMq8C7TrSiZZZTJ8Dy9Fx0ctVyqk92THT1n4=; b=AWdW/78L0+WuWRd24JrYofK3/xjjTBnWdoBWhigLYscBtH3mw9slY6R3HAUZkNFhm2 MtsO1pUvgXNE6e7DZqRMsmYWirEibE9zplshqwqHS5zNNRgdFJ50LQ/ShWRSFp0S4ODW /G0T2lvdaIj2Vn28rpC0TAe58FwEkwRTYVSPQQUImqULGnlcmtFR9oTLFDMX8/8oOis7 nkY6WbpQC1zlRltO/KA8smqjNIhoFztXw2+1cuswq0HB1gEq91fZVqpizU8fWIVdbqwE MuF3QFETmovexyL3L88uJaLE3bN6Yp2q8tIqhwjBhcvXFrfTObkLxdYou8Yj05cb3ckp 7JVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702486307; x=1703091107; 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=kpLILZybMq8C7TrSiZZZTJ8Dy9Fx0ctVyqk92THT1n4=; b=UCxR0BqF73oaoq7EH9LBg8llbB3qhExCVKgK5rF/+QvdZZ/Fp0IQDhEdHDPK+7j/Hj zYkfVSYgywIfq1GPA952cL43nO9s50dUeZOX2HSPBItZk4/t56DJB801WhRXKEOtcL8B LgjrWHKYff+yGDFTT7TPmDX+yiq16TfgYFMDsw1hqFCtZ8giWtn8PxamDe5CUhzAtcvA UuOx9P/77tHRq/ITZrS04E20N1jqU0C+AIQDWyvafklKFoC1U40EYDJZWn11Mn4bmzMv wPg7K1dgVcwjU1zVIwLxK8VHxsZ5CnJbOR9ZGXHBpERJ2wQ1UXVbVjfXnlXynwzO5Bnv XCew== X-Gm-Message-State: AOJu0YyWFIKWWAb+l6ScBu1VdJkBKgOJkUu6UmNRSQHaeHjFCmrUaTf9 0aiEHIw9G+qrHd8HK16Yw+A= X-Received: by 2002:a19:4f0a:0:b0:50c:1bc:33e3 with SMTP id d10-20020a194f0a000000b0050c01bc33e3mr6387897lfb.2.1702486307057; Wed, 13 Dec 2023 08:51:47 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id sk13-20020a170906630d00b00a1d232b39b3sm8172682ejc.145.2023.12.13.08.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:51:46 -0800 (PST) Date: Wed, 13 Dec 2023 17:51:45 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 02/10] staging: rtl8192e: Remove unused variable nMaxAMSDUSize Message-ID: <4df74fda70535ddbdfc90ba7c98e9d4a773f944d.1702406712.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 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:51:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785186292702271694 X-GMAIL-MSGID: 1785186292702271694 Remove unused variables nMaxAMSDUSize and amsdu_max_size. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index bf87106dd784..ff0eb0d01022 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -102,7 +102,6 @@ struct rt_hi_throughput { u8 PeerHTCapBuf[32]; u8 PeerHTInfoBuf[32]; u8 amsdu_support; - u16 amsdu_max_size; u8 ampdu_enable; u8 current_ampdu_enable; u8 ampdu_factor; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index cb8150137858..379934a71f87 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -71,7 +71,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) { struct rt_hi_throughput *ht_info = ieee->ht_info; - ht_info->amsdu_max_size = 7935UL; ht_info->amsdu_support = 0; ht_info->ampdu_enable = 1; @@ -436,7 +435,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee) struct rt_hi_throughput *ht_info = ieee->ht_info; struct ht_capab_ele *pPeerHTCap = NULL; struct ht_info_ele *pPeerHTInfo = NULL; - u16 nMaxAMSDUSize = 0; u8 *pMcsFilter = NULL; static const u8 EWC11NHTCap[] = { 0x00, 0x90, 0x4c, 0x33 }; @@ -471,8 +469,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->cur_short_gi_20mhz = ((pPeerHTCap->ShortGI20Mhz == 1) ? true : false); ht_info->cur_short_gi_40mhz = ((pPeerHTCap->ShortGI40Mhz == 1) ? true : false); - nMaxAMSDUSize = (pPeerHTCap->MaxAMSDUSize == 0) ? 3839 : 7935; - ht_info->current_ampdu_enable = ht_info->ampdu_enable; if (ieee->rtllib_ap_sec_type && (ieee->rtllib_ap_sec_type(ieee) & (SEC_ALG_WEP | SEC_ALG_TKIP))) {