Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6839517rwl; Mon, 9 Jan 2023 13:53:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvqJ0FqQfiSAuhN765FWZOXmH7eTx5Fb0cjvHLQNV2UTOxAlGAdf5H/ulA/GEFreHOEvg2f X-Received: by 2002:a05:6a20:3a88:b0:b5:f17c:cda with SMTP id d8-20020a056a203a8800b000b5f17c0cdamr2884110pzh.62.1673301197145; Mon, 09 Jan 2023 13:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673301197; cv=none; d=google.com; s=arc-20160816; b=Nd4CWhgjzliTH6AgAPCP11OoXPkcFWlMZrV5KXIgyap2VEWxfZrg606dwPz1Rv9kP6 2gIaky+5bWGfTbuIAceuj8ZOUGH5TmagxR5wmmOS9Qd+mdcVsycj5bZGNz9QYLj7ABZp t/SkIrG4oHWBLNJunlsHJxuKGgkQO+WNu51mRN+5nVWEv63KTtfzEO4nSeSjjKfbZiG5 +plYEZwXJwhkk9t8CdFRa5QYz6Cvyf8xiNxU6sz9o7JnOHez7MGA4MKL0RiY+3WKciUw O9RzGVe9mEQ/JPK7mOHJughTbp8mU/BMqqMhhL/ErkLTNYhPoK/yh0TLOdf0oCPCI3Wx +agg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LUvt5LHD6lszCbbeHdQsDWRaJW6uFNPTqo1QOrpr3c0=; b=SVFh9WCQ54BEv0E5hed4jpAqXSU5Gud69n/o2wkpyx+qznLOUqUrfQapShyLRt0hHJ 0LyETfN34JfO6FwxZcBFrS6IEbfo+AslWHRSdi24+US7DVYVkvLzVLN4CLBziwOJ1vI4 av/Dh83v2bTnVcrMdaCPxwtlgnEEqgsp6ypNf+mB5z5UiaIO0EklBdBcGTNZV9/8Un4S cMrMtbZQK4D6vN0KcQYB1RSnsWm71xec9fLO4eGUhttz2oo0LXGfcQc6AdGzhrUIOZGf YoJz4K9FDpPbsgma08q65zmH3hbPthHxVylLvL897KeU1iF9QgQ86/AiXTnDYm7nVOrB tE6w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w69-20020a638248000000b00498bfb45cffsi4388110pgd.797.2023.01.09.13.53.10; Mon, 09 Jan 2023 13:53:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbjAIV3o (ORCPT + 53 others); Mon, 9 Jan 2023 16:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237969AbjAIV3S (ORCPT ); Mon, 9 Jan 2023 16:29:18 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA49DFF9 for ; Mon, 9 Jan 2023 13:29:10 -0800 (PST) Received: from dslb-188-096-147-178.188.096.pools.vodafone-ip.de ([188.96.147.178] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pEzhY-0007iD-Lx; Mon, 09 Jan 2023 22:29:04 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v2 01/12] staging: r8188eu: beq_cnt is write-only Date: Mon, 9 Jan 2023 22:28:41 +0100 Message-Id: <20230109212852.75612-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230109212852.75612-1-martin@kaiser.cx> References: <20230108185738.597105-1-martin@kaiser.cx> <20230109212852.75612-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 beq_cnt in struct xmit_priv is initialised, incremented and decremented but never read. Remove beq_cnt and resulting dead code. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_xmit.c | 1 - drivers/staging/r8188eu/include/rtw_xmit.h | 1 - drivers/staging/r8188eu/os_dep/usb_ops_linux.c | 4 ---- 3 files changed, 6 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c index d224785a747b..e5ac49441337 100644 --- a/drivers/staging/r8188eu/core/rtw_xmit.c +++ b/drivers/staging/r8188eu/core/rtw_xmit.c @@ -195,7 +195,6 @@ int _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitpriv->txirp_cnt = 1; /* per AC pending irp */ - pxmitpriv->beq_cnt = 0; pxmitpriv->bkq_cnt = 0; pxmitpriv->viq_cnt = 0; pxmitpriv->voq_cnt = 0; diff --git a/drivers/staging/r8188eu/include/rtw_xmit.h b/drivers/staging/r8188eu/include/rtw_xmit.h index f8f10c67b764..c84f73f2cc59 100644 --- a/drivers/staging/r8188eu/include/rtw_xmit.h +++ b/drivers/staging/r8188eu/include/rtw_xmit.h @@ -282,7 +282,6 @@ struct xmit_priv { u8 txirp_cnt;/* */ struct tasklet_struct xmit_tasklet; /* per AC pending irp */ - int beq_cnt; int bkq_cnt; int viq_cnt; int voq_cnt; diff --git a/drivers/staging/r8188eu/os_dep/usb_ops_linux.c b/drivers/staging/r8188eu/os_dep/usb_ops_linux.c index 220e592b757c..067b7def2bde 100644 --- a/drivers/staging/r8188eu/os_dep/usb_ops_linux.c +++ b/drivers/staging/r8188eu/os_dep/usb_ops_linux.c @@ -48,9 +48,6 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) case VI_QUEUE_INX: pxmitpriv->viq_cnt--; break; - case BE_QUEUE_INX: - pxmitpriv->beq_cnt--; - break; case BK_QUEUE_INX: pxmitpriv->bkq_cnt--; break; @@ -123,7 +120,6 @@ u32 rtw_write_port(struct adapter *padapter, u32 addr, u32 cnt, u8 *wmem) pxmitbuf->flags = VI_QUEUE_INX; break; case BE_QUEUE_INX: - pxmitpriv->beq_cnt++; pxmitbuf->flags = BE_QUEUE_INX; break; case BK_QUEUE_INX: -- 2.30.2