From patchwork Mon Jan 9 21:28:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 41164 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2392010wrt; Mon, 9 Jan 2023 13:34:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXsEabXHS4mmrI7vFmr6YRsFkEnhAi9+3sVNyoUNvdPG3d6j0yYnnZ1XxGXn4LT7eK9ennpo X-Received: by 2002:a05:6a21:32a5:b0:a4:93ca:a2d with SMTP id yt37-20020a056a2132a500b000a493ca0a2dmr114031242pzb.49.1673300077346; Mon, 09 Jan 2023 13:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673300077; cv=none; d=google.com; s=arc-20160816; b=SofmqMK18bC7vA97/TCjL06R7GEYvRevkjDQy0YIZkH/z5tNf5YNjSzcp+4ZmQ+ySb JkndOwNQf15nt8mZA3iIXABpbvk28X5MP72F8FkA/N/zx/94AEWdKot6nhUmMXxLKuyg bFYCgbhA6sxYx8hd7CsVbdDLVuPppTARzP57WAnnCP+r99iweJLnOTjRUstSVIeMMbYN jPIo893lARwM5XwOuQsCmUjWK5hLBGfmyyUPtDKNruJJyepiI/REHBHuUxJQT8NDx9QX GXjI86Up4qExFa0gqlFz+KjWcNbat48I79eew9SYY6HFKB0uHjTEi/o/rsFEa9iAXdg4 ydrw== 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=8vWQjTzm22O7iAga3cSFZ8jnabS+zthzUpWQ5codcZA=; b=E9cjUAp2M1V68xNHb5RLJlISokGxZeTaObBtOTMw512+/j0F/5IO+nRWory/92EETQ NWmzkilnB9PgQ/5rQPGlMMUyrCNvArDiKvV9uqxFTEW1rFRzPRV6TkmVo4FRgZxYaN+R oq5OXYMnyZT6aZFx6LoMEZHVZhjrdTsij1vFdIDygb9eoQbvVXCbLg7Ge62B7Y8kJcRv gOcPKpBetLOdhshBV+hiHZIVjyCDjhuO/FE7WXdOlAX7EDwL9y6dg03SPcdOO6g630Bz EmLRjEcN3WES95EeLESa1ZpANP6Y+/mmaPE7X+vjqX8cnH4CjGDavY+h4s9WLUharM1z es7Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a6545c4000000b00487fa650674si10195692pgr.788.2023.01.09.13.34.24; Mon, 09 Jan 2023 13:34:37 -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 S237987AbjAIVac (ORCPT + 99 others); Mon, 9 Jan 2023 16:30:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238034AbjAIV3X (ORCPT ); Mon, 9 Jan 2023 16:29:23 -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 8A075305 for ; Mon, 9 Jan 2023 13:29:18 -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 1pEzhh-0007iD-LU; Mon, 09 Jan 2023 22:29:13 +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 12/12] staging: r8188eu: xmit_priv's vcs_setting is not used Date: Mon, 9 Jan 2023 22:28:52 +0100 Message-Id: <20230109212852.75612-13-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754482531655950467?= X-GMAIL-MSGID: =?utf-8?q?1754582301663333697?= vcs_setting in struct xmit_priv is not used any more. We can remove it. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_xmit.h | 1 - drivers/staging/r8188eu/os_dep/os_intfs.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_xmit.h b/drivers/staging/r8188eu/include/rtw_xmit.h index abac0103b53a..cc32167fb4dc 100644 --- a/drivers/staging/r8188eu/include/rtw_xmit.h +++ b/drivers/staging/r8188eu/include/rtw_xmit.h @@ -267,7 +267,6 @@ struct xmit_priv { struct __queue free_xmit_queue; uint frag_len; struct adapter *adapter; - u8 vcs_setting; u64 tx_bytes; u64 tx_pkts; u64 tx_drop; diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index f022f6b1cf3e..cfc24420e70c 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -392,7 +392,6 @@ static void rtw_init_default_value(struct adapter *padapter) struct security_priv *psecuritypriv = &padapter->securitypriv; /* xmit_priv */ - pxmitpriv->vcs_setting = pregistrypriv->vrtl_carrier_sense; pxmitpriv->frag_len = pregistrypriv->frag_thresh; /* mlme_priv */