From patchwork Tue Nov 22 22:46:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 24614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2476717wrr; Tue, 22 Nov 2022 14:50:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6l2gxbqsBFdjd/eERAm3VfaANpzLvuH+yKENrGk3qZzCezmPVCJWJqbPCHJBSfqrdpCkLn X-Received: by 2002:a17:906:2599:b0:78d:474c:2a59 with SMTP id m25-20020a170906259900b0078d474c2a59mr21647475ejb.759.1669157442964; Tue, 22 Nov 2022 14:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669157442; cv=none; d=google.com; s=arc-20160816; b=GhjprILmjMNjnMAH2lqXCZ0XjGiDS9VCtlVbKFtRYY/5st29u5/8/L5xT4eH5J8am/ 7dQN0v76084eTA5FLhfTdJiJL9P0qusBDmDoEq2P6vBNJzRILActu2A5txD1f9l4fDDF VbujMPOZXquuS/VdgOJQ5WD9c53k3TXDAW1uVGG/XzA1Y3JShKjoaXptaqr2gUO7arez 28iy5Ypjz90wup0+qlLnkPUye0oL82hQL5L19YiNK6wX0E4CXj6EB92sdPuiuDcoi+Fs QQd5keRdw/RTfS7zD6OLEVgW6v/vfgMFzW33aimwERR3V+9+UXPK7ZJlHhEZ/XB5hyVU w+SQ== 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=QEaJLedtxp4Hd4OqGYxt+eo5FX2zcD+DeLqh0BnkZRE=; b=T3i5iPQfhvR2otM5DrrW+c5TUjrVU1KSRmolCmvGsmp8yRBTMEhnG2BRVBRRhUDZSm PphEq2zA2jAG3lDd0YoWUUuSDsntbPFVe93vPlCTE+FfKZgSJ97OvkquojYcb3IcmPZC 6eRLuU8/7DrNmR+Irtng/pQ6SR2f/nsbPvtlpcZkv6IE6gylGw1xQ3DY1ogX9fX7/F3y VXJnbOjMcCIsPrhrj5SnC3mpn8Imr15pAt++/7wxJvEDOqTg1gsv5f8H+Kiq4lziUYb+ E8sFcA5Q4hUdTKvgPs+ZLvNxFu5bjsLo89WrXG+ifm2F21APPBB4SA4lhQneHgldI7k4 DYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=htH6hiIz; 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 q24-20020aa7d458000000b00461d97e5287si10985834edr.344.2022.11.22.14.50.19; Tue, 22 Nov 2022 14:50:42 -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=htH6hiIz; 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 S235265AbiKVWqz (ORCPT + 99 others); Tue, 22 Nov 2022 17:46:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234874AbiKVWqd (ORCPT ); Tue, 22 Nov 2022 17:46:33 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1939CEB97 for ; Tue, 22 Nov 2022 14:46:32 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id x17so13531235wrn.6 for ; Tue, 22 Nov 2022 14:46:32 -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=QEaJLedtxp4Hd4OqGYxt+eo5FX2zcD+DeLqh0BnkZRE=; b=htH6hiIze2cA8azBJCi1YaJk/VDgg84GAWotqblQ09VK/wBHIlp4u3VqNiJ8ufYlIZ yQV6VjC42gjeBOTKRlWYofvHJubGgUOHGnHFmAKufSrIStW3Df8tnKQNQ5i3xVh3jTMs S6S3x5gxJn9jNSOqO7lvraQpf44qwGKunVEVOF08Flwc9u1/I6QvaYrtpluz/BP5QjHt Za+Mn4P+WDNEFwQS01ihYWoC5l8zpPj7/TFC1OHRmyaSWdX/JlnKRboef72xCBl4rfPj Xtiu1eNh2Rh2w+fXn0pDoN6FlIj9WP+EcGUHsbv6Ib2u9LEqD0gx0D/qD6B5zcz2omiF rcsw== 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=QEaJLedtxp4Hd4OqGYxt+eo5FX2zcD+DeLqh0BnkZRE=; b=sMdKHIbNaGt3oFDBD/wLUMhxgRI9gAuKltJzHbT7MLoDh/bWQGR74okR06iasYQ6EW IfZoMhPjpToLjx7ONH1wc4iVjw++5EqBDYvJUsPCFFpx3JFiDDLtq/hBGZOdl9s1IERM SoJkkgM+on/2LXz0DDYA/oJLf6UnXfniIT166UjIfzXyQ5VpUJcjdiZgKxKrgBQAk7Dx +k7g0xIG4cnU6JVJVp4Envg1mCL5sPl7TgzbGlsncS6k7mDQMbnhpZAeRxxW3cD1U0KI fVw2Bm6rOByKr0gtLxcsavjcUsPWLnsuHnYwC4UOrmdTjSxRRHXnRrshmoRHoEIRmkC4 PZCA== X-Gm-Message-State: ANoB5pmoH/lCRVOIWQCugD9nLy0KgTu1aKUCK9X6nHEQ6MrwLjUSFvwv Rywp+6FsdHexW8xMrSWwWnMIJi7jVHE= X-Received: by 2002:adf:c64e:0:b0:236:78cd:f3d2 with SMTP id u14-20020adfc64e000000b0023678cdf3d2mr16049108wrg.719.1669157191563; Tue, 22 Nov 2022 14:46:31 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07888.dip0.t-ipconnect.de. [84.160.120.136]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b003c6f8d30e40sm153935wmq.31.2022.11.22.14.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 14:46:31 -0800 (PST) Date: Tue, 22 Nov 2022 23:46:29 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] staging: rtl8192e: Remove unused variable int_log 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?1750238434548870257?= X-GMAIL-MSGID: =?utf-8?q?1750238434548870257?= int_log is initialized and incremented but never evaluated. Remove resulting dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 15 --------------- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 -- 3 files changed, 20 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h index 53fd79a28189..ac192254a4bb 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h @@ -154,21 +154,6 @@ struct tx_fwinfo_8190pci { }; -struct log_int_8190 { - u32 nIMR_COMDOK; - u32 nIMR_MGNTDOK; - u32 nIMR_HIGH; - u32 nIMR_VODOK; - u32 nIMR_VIDOK; - u32 nIMR_BEDOK; - u32 nIMR_BKDOK; - u32 nIMR_ROK; - u32 nIMR_RCOK; - u32 nIMR_TBDOK; - u32 nIMR_BDOK; - u32 nIMR_RXFOVW; -}; - struct phy_ofdm_rx_status_rxsc_sgien_exintfflag { u8 reserved:4; u8 rxsc:2; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 7b78bdfadc8d..f8fbe78ccad9 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -866,8 +866,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev) priv->rst_progress = RESET_TYPE_NORESET; priv->force_reset = false; memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32); - - memset(&priv->int_log, 0, sizeof(struct log_int_8190)); priv->rx_ctr = 0; priv->rtllib->wx_set_enc = 0; priv->hw_radio_off = false; @@ -2185,7 +2183,6 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev) if (inta & IMR_ROK) { priv->stats.rxint++; - priv->int_log.nIMR_ROK++; tasklet_schedule(&priv->irq_rx_tasklet); } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index ca2e685148d4..cceb77492363 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -317,8 +317,6 @@ struct r8192_priv { struct work_struct reset_wq; - struct log_int_8190 int_log; - enum rt_customer_id CustomerID;