Received: by 2002:a05:7412:d384:b0:fc:a2b0:25d7 with SMTP id bq4csp4352rdb; Wed, 21 Feb 2024 13:47:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIcAh+PTK2HwN256uAa7Rm2F3G7bPBAbQ0yGzUvPgpg78QmfG4RJa4QIL6Z6Gi4Jyexvy58whNFSMrc+oMEzb0ICnARawHclK5NdEThg== X-Google-Smtp-Source: AGHT+IFjYFRbgePtjqrPFjnaIm/sfpnXd6O+mlM22QJPWVwZYuV002CuOKNGLDsvw9c03KLgLAfE X-Received: by 2002:a17:903:1212:b0:1d9:14fb:d142 with SMTP id l18-20020a170903121200b001d914fbd142mr23265594plh.32.1708552038087; Wed, 21 Feb 2024 13:47:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708552038; cv=pass; d=google.com; s=arc-20160816; b=et65UD22U2g9jZYnITPcVnnMv6TAq56+wTV+kqer5WqiJZsOLCTOMnTJjerWkS2Fhj rWQA28ABg93Zv2Sw0Azp3XoSvx3/8fJtYzWeT34pDA1lcb7NNJnhcBVr9fHNHmvfIJOH JIxnw9fGH2BmgV0qaqDiiFf/b6mhZLdsIV4EmztRjqi8LV4u1GcxWpr13spLdi+bhrDt soZ9HVYpPVaS5HnR7T3yOGIMNciMxDY3JUn2baQHw7MZL1ryVJ02WLk2uqgVyZwAAMSh 3RLvP4TWfcVlfJRWaWfyOsKVdq5qvjMz3qEb+DhvluUw/+ftW8XSx5s7qP1kzIvKYYcU 8Hag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:to :from:date:dkim-signature; bh=P120Wp5N7NPu3zWjz/hKIW84Ut+CiTr8TgaGF61U464=; fh=PfzK8FrHpWED++sJPIukCJ2RHjARapxbNYuUE0MzPTs=; b=o2o0RX5vCJ+ptVuKjpF2miM4Z8Bx2EMHLOzVTsPr/5EjxkrhsOuVIy4mLnUiMAqAn6 65oYUJGIlRPRxsE0NQc1Jl1+LOJciN2cmP/RFDMaeiECX/9NpsIVulhCJbWmgoDssXry 0itKIKYeTlvntqElpGE516ApSWyfmKLD8JMMctOr5m8/LA2bKPPE2xxx7Wd7tE1LYd9p ji1ofeeJC6Ykpkt7XeaiVkikAefkgnGrNEzrNq6xRFDjp3K11JE2VNn7l18sfoGqeC8H V31cYWipaXYHgvHzRdF419nvdTQ1YLangsyZgA9iG/TlzUYlbtZmWwm/+4pFRNiFb/N7 cwiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hJuNH3Y4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v6-20020a170902b7c600b001da2128eb1csi3742967plz.337.2024.02.21.13.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:47:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hJuNH3Y4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EA8D2863D3 for ; Wed, 21 Feb 2024 21:45:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC695128378; Wed, 21 Feb 2024 21:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hJuNH3Y4" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8AF1272CB for ; Wed, 21 Feb 2024 21:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708551925; cv=none; b=UMJSX8Qc1nJfRJImzIL4bulakQJIdtCeE6TxKZv7A49I7GnyHAT61wx+APf6ky7/LJJsdW72e8Vz7/zrnHFVyM8NIZIOBzzR0YbBwOW5XwRYk3s74jkeAwUOtjZVEErW4fHIA9mD70jVd9xRH+vf+DDK19EIRnyYLyw9853yxT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708551925; c=relaxed/simple; bh=uyFsV9OUDeqhejULZAuA/MVq4g8588CDjo+WwYteZ8k=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EDBarnYdRNU2apzYM3pqv67aNaezLnSDY3R51jOlAkYJ7NSVLmsMmPw29gVBzzs/P1DDdJbR/5u/zwfH1nsqDIeudIM4Gb1EjHoH2/Nvu6EO3WAlZTZphCpQX025tAVVj2oFZXuqZ291tnm9QFwLD5l08McKJ98Mrfufeth/hFY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hJuNH3Y4; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33d1f3144c4so771734f8f.0 for ; Wed, 21 Feb 2024 13:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708551922; x=1709156722; 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=P120Wp5N7NPu3zWjz/hKIW84Ut+CiTr8TgaGF61U464=; b=hJuNH3Y4OM/j2HXMxtbpPudHcYNpSfGRG8/XtacJ3cSXXBfkZ0IfgH4UNVvwVqu6pU 0OHCGMoPG/h8wMD/JxlHCWZvrGoBVPwnu13RDXOn1yy12bIg/6eBvU17wxvHY0P67kzV 3mIzFnkjJCBXhCl7PHbo/NBSSrmI39yZg6oS1GCAF7GSvkBfz1rZHcs1YQWWVXWqVGB2 AuHBXywDOvW5L5Le+bjld4/slWzVPUPGAG/zDU72H0pLanIkLcvXDWOYzjKK5aI1irkV mgo8702raqAQNfeF3Xna3UJ3UDMiskCEq0NnR+c5Q/2p70IYh93BteepqVMLaELozlzE 8xDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708551922; x=1709156722; 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=P120Wp5N7NPu3zWjz/hKIW84Ut+CiTr8TgaGF61U464=; b=N5gGLnsBc8ZJc95yDIIddn4vtgEJe5zjtCla3m2EDxXSTHHkd8+6anFJw//epFPswT t8qZNdzqoS+WIs7VZsnMhX04f1VrhBOkZH13uK3cOCNS9oKsEMGGGzeYkeMVFxozG589 VL2qqBQ9N4zXRihosrpsp6e+Z1af0dT8GdluKD5dA+JGxqszbgSgG7Wk7rvDGxkyD2Sq XbXJaVImykyypJQrE5JhRHGLq37RcgBNPAjuTSkHIFmmAQ2p3wxapm54BG6+L+ZrhfSQ yn+1Na4cFveNf2tiut8rexrqsCw1NN3L16LfA8ya4nFdUJJhTBIofiaStdv2QM8mDcaw UXYQ== X-Forwarded-Encrypted: i=1; AJvYcCX94wKVSqX6j2Dz1VgOCzPS0wyZAKSVwcZDKOMHt23dD0J5lpMuSzPG08GhYpkzKKmkyN9t37VJ2bu4/UFfmTxHiaP/qi/wz4J7HJQ1 X-Gm-Message-State: AOJu0Yw/mzMz4c+Xcxk2J5XAkkJLRRMb0MMg4umNFCZrnwImkAa8Dc6V 0fxCiLAtYinfNXusvxjUJoDZBZ0Yqq42ZvaNtMaiCptYv0BioVbV X-Received: by 2002:a05:600c:1d24:b0:412:db0:4471 with SMTP id l36-20020a05600c1d2400b004120db04471mr436136wms.0.1708551921981; Wed, 21 Feb 2024 13:45:21 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id 13-20020a05600c230d00b00411d640085csm19129971wmo.43.2024.02.21.13.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:45:19 -0800 (PST) Date: Wed, 21 Feb 2024 22:45:17 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] staging: rtl8192e: Remove variables bIsQosData and RxIs40MHzPacket Message-ID: <7a8b579fd3d377fa961fe71e37fe4afa22f2a3b9.1708461563.git.philipp.g.hortmann@gmail.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Remove unused variables bIsQosData and RxIs40MHzPacket as they are set and never evaluated. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 -- drivers/staging/rtl8192e/rtllib.h | 2 -- drivers/staging/rtl8192e/rtllib_rx.c | 3 --- 3 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index aeff01e921e4..ad453a94b5c7 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -1671,8 +1671,6 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats, stats->TimeStampLow = pDrvInfo->TSFL; stats->TimeStampHigh = rtl92e_readl(dev, TSFR + 4); - stats->RxIs40MHzPacket = pDrvInfo->BW; - _rtl92e_translate_rx_signal_stats(dev, skb, stats, pdesc, pDrvInfo); skb_trim(skb, skb->len - S_CRC_LEN); diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 1949fad401d0..943a16ead903 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -487,14 +487,12 @@ struct rtllib_rx_stats { u16 Decrypted:1; u32 TimeStampLow; u32 TimeStampHigh; - bool bIsQosData; u8 RxDrvInfoSize; u8 RxBufShift; bool bIsAMPDU; bool bFirstMPDU; bool bContainHTC; - bool RxIs40MHzPacket; u32 RxPWDBAll; u8 RxMIMOSignalStrength[4]; s8 RxMIMOSignalQuality[2]; diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 29bdaff4cbab..1e4956fc6754 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -865,9 +865,6 @@ static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee, rx_stats->bContainHTC = true; } - if (RTLLIB_QOS_HAS_SEQ(fc)) - rx_stats->bIsQosData = true; - return hdrlen; } -- 2.43.2