From patchwork Wed Jan 25 20:09:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 48299 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp464333wrn; Wed, 25 Jan 2023 12:11:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXs7Liqtm4XfMwa/j6ne8dJ2jFJIe03KCOmO2bVk2+nS4coZT/H4YN9V8eCnFBzgThR3QmfO X-Received: by 2002:a17:906:78a:b0:86e:7683:4213 with SMTP id l10-20020a170906078a00b0086e76834213mr36478028ejc.42.1674677467416; Wed, 25 Jan 2023 12:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674677467; cv=none; d=google.com; s=arc-20160816; b=sa9GyA8TbgyIr6XXlBpSDTrlmWU1gjsaUieAep2IAWv6zg5+7acPJtyS+SrCj8PcLh jym/hh8nHjIrn51lIbkMtk5lBj0hWwCOm27hWycinYnhnlidVPP+VvWPH4ANxh+8UrQ0 /a26kfZufgbax6VsF7kZUDbDTOv9jYQ5yCHzXav3Jz7cbEtdvaTpZ2KjyE7b/RU4HJ9I aUCW9Hj7AHyitY1bnFgI9AZQ7qa2Xy0qwU8Jn3siUe16HzWHccFgr6CWbe6eWvRfNw70 toR2ZFk0TYViSwM32seuftMhUe14XTbuLV+ABKPgk2wrBdHR+5KlpuliwCE10uF8spKj j72w== 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=gMf09+fC4QI99DmXPRyQuRL+tFfoSe44zXEcxxr3d1Q=; b=wJwGV8UKnViPjzXlLw21H5D0x+jWU/HECT3hHggshW5bag5SW5ADNGcv2N8h6WZBoc Z7m0qc8IH+IWHDw9WC74PWCJcy7Rr8CfZUnwAJInEPZeEGBk/tp5T64E4f+NpIB8p3mF if8lOhfZcdzFeyh/M+mhaaIax8tYdr3HA5VySH88wzq1B+BT1twpiPwevZYL80nPpPOj /qGca0xyMfjbu5INF3Cfmvakp2eUYTGJ8ECCgzGXY7FYDzTFTMToHu0r7kKieBRUxm46 PfReHajRPKuAiui0N42Q/ed03I4CMjX8pstfaFiYYdK/EuhKhCpVXHELFSD0rN3wb2bt XZ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pfhjKcsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170906220400b008697a71e4ebsi7927688ejs.853.2023.01.25.12.10.41; Wed, 25 Jan 2023 12:11:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pfhjKcsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236334AbjAYUKE (ORCPT + 99 others); Wed, 25 Jan 2023 15:10:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236343AbjAYUJt (ORCPT ); Wed, 25 Jan 2023 15:09:49 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B03425D911 for ; Wed, 25 Jan 2023 12:09:25 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso2134967wmq.5 for ; Wed, 25 Jan 2023 12:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=gMf09+fC4QI99DmXPRyQuRL+tFfoSe44zXEcxxr3d1Q=; b=pfhjKcsDMG0B6iYPy1uEpIfPgWWhr2EgYByXnBIKOjyeXxqKfvfk/XevDGkyN8CCTG 16TteLtHyrNqg3yu6p5xze1CVd3TY/TGKo4DSghVvYHCArXdJMQuu9mWRoiXXtqsDrn6 ohxv+G5zIn7LY0YrnCnNfKC83qiVIMcpYA6uuxogHZ/jcOlBJFYmV7lCe+sNR1dyCxfM D1VC9PZQ9SjwFKdS3uakSJVG3z4+sSJretwpGLGSJzmaQjK4ngH+YDsZUQpH3KWFAuH4 ksYOHcqbqcEA/Bg8bBp6uAhwRgOG9y04bn4AnlgUOx/1UzZnErubqvtmvy0ZD/6R0hPr pSYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=gMf09+fC4QI99DmXPRyQuRL+tFfoSe44zXEcxxr3d1Q=; b=EjBWDhguTHHxcKjGntGIJKAkpii2ybxurZZCYM6ZrV1QiHLgn776oqrcryn637qEQs f+bTLFFzTjnfgcQ/kMOOM8Z+awdQPsPYmlM+J8M+g1EYjBASJ41uS/LRk3hFQKt9J4hH VafOLXqCVZuZcHVnfYLCCsOKOxmqBkHRBdy/PaOEb32kWP/AaQd5vexfKomuL3J2Dz8b bfb3r+vmfZK4Rqsan8kh6Fck5D7IQ3XZ7CJFFz8xflRk0z34xeoLLzRxbtRXSHDqEkaU yHZdN8fxIwYrmpDYYE2PT7zsK2+9ucBbhlLVp7hLFV0W71rjdXwMFYdQAKiTgUri0szb zd3Q== X-Gm-Message-State: AFqh2kq81iqlkLE0Ohxoa8x5Z8LFUrdMRQupD9++p6ERajQywaeFYYpD jYMqDL+Y6gaLMJL6GnIW44c= X-Received: by 2002:a05:600c:3ba8:b0:3d9:8635:a901 with SMTP id n40-20020a05600c3ba800b003d98635a901mr8574306wms.3.1674677362197; Wed, 25 Jan 2023 12:09:22 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id t16-20020a05600c329000b003d35acb0fd7sm2685430wmp.34.2023.01.25.12.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 12:09:21 -0800 (PST) Date: Wed, 25 Jan 2023 21:09:20 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 09/11] staging: rtl8192e: Remove unused variables txviok.., txvook.. and txbea.. Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756026599861684585?= X-GMAIL-MSGID: =?utf-8?q?1756026599861684585?= txviokint, txvookint and txbeaconokint are initialized and increased but never read. Remove dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 ----- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 768324cbe253..4cc90425fa4c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -2139,9 +2139,6 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev) goto done; } - if (inta & IMR_TBDOK) - priv->stats.txbeaconokint++; - if (inta & IMR_TBDER) priv->stats.txbeaconerr++; @@ -2192,13 +2189,11 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev) } if (inta & IMR_VIDOK) { - priv->stats.txviokint++; priv->rtllib->link_detect_info.NumTxOkInPeriod++; _rtl92e_tx_isr(dev, VI_QUEUE); } if (inta & IMR_VODOK) { - priv->stats.txvookint++; priv->rtllib->link_detect_info.NumTxOkInPeriod++; _rtl92e_tx_isr(dev, VO_QUEUE); } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index 96d340f686e9..f8b2201ea288 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -184,9 +184,6 @@ enum reset_type { struct rt_stats { unsigned long received_rate_histogram[4][32]; - unsigned long txviokint; - unsigned long txvookint; - unsigned long txbeaconokint; unsigned long txbeaconerr; unsigned long txmanageokint; unsigned long txcmdpktokint;