From patchwork Mon Jan 9 21:28:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 41173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2392465wrt; Mon, 9 Jan 2023 13:35:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXs8GO4ReBVgk2THo5sEU9+cq/0c+y1iANx1w247UqbwYKgJG4xkimLe2a1XmEfZfYdvK+Qx X-Received: by 2002:a05:6a20:8346:b0:a7:8ce5:6fc6 with SMTP id z6-20020a056a20834600b000a78ce56fc6mr62645280pzc.13.1673300151178; Mon, 09 Jan 2023 13:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673300151; cv=none; d=google.com; s=arc-20160816; b=vZWJZDJc4omOyWltPVcI4534ZtujrFSv0bpaXAUiWhaFjrz1vth9jiGK/yRbUwNznY 6D36r0Q9yd4+owboq+kXp+dBFRhtfQaXJHASw//Yh68mptBMNsFGCW5C+0X0kOoZwqa0 mlQby9nuMCJYyxv7ySAI1xO+PlQYpnenbbm2qjXVo9Yx4EgpXEVWKmaQNzprW+pdvDpa QOrhY2ocbPAu6cYayr6W696mwbhnKuhisarwW1Y8gEUpzZtt1mZKVdcBGSx7UNz8bYoq uiEiHiKvgklBOCIh+BMjg8EmBZMoOjrwPHYdE8R1dFlvEEQlFJhQYU7/7ebII4yb+RIP bHfQ== 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=JX6LmtZgJ53Yaz7p87fAJxDajWoCqryVHDcRom3VzTE=; b=GHPWttPKc1opzMirkedrYtECz6H4wpCSRJEh/PkY1cd206KyUu2LuH0ud/shIr5Vo2 VrbIW2m/+GTFCbpgA/7UuM1hg/BddVbeAus4lJ3N7RYQdLEf7dUucSREaCbgEiK5Didy 3Fw0WqVCw0jCbY3iuL1J5w+ZrUuD6skyWw7y5xd1aBjGbb7MccKRyvvKX5rkU+nFF1jy i1wdpS98MNbG9DhlwpEh/R985W6wlzTW8buNOMFXWv5NvBZ1LwIDrvQo3Vu32Cfeb88A +rBwCx4RXe3pOjbsOnxnieqqJyL8i0P9E9oNPFUMnGPiaNdrXV5P4GXCVnDhbdQ1ZYzq X/Ag== 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 f9-20020a639c09000000b0047943c39fc2si10346205pge.160.2023.01.09.13.35.38; Mon, 09 Jan 2023 13:35:51 -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 S237858AbjAIVaG (ORCPT + 99 others); Mon, 9 Jan 2023 16:30:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234229AbjAIV3X (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 EB5E1EE3C for ; Mon, 9 Jan 2023 13:29:16 -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 1pEzhf-0007iD-Tj; Mon, 09 Jan 2023 22:29:11 +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 10/12] staging: r8188eu: xmit_priv's vcs_type is not used Date: Mon, 9 Jan 2023 22:28:50 +0100 Message-Id: <20230109212852.75612-11-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?1754482228503280732?= X-GMAIL-MSGID: =?utf-8?q?1754582379159406369?= The vcs_type component of struct xmit_priv is not used. 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 50d9311d3e40..77d79c43209f 100644 --- a/drivers/staging/r8188eu/include/rtw_xmit.h +++ b/drivers/staging/r8188eu/include/rtw_xmit.h @@ -269,7 +269,6 @@ struct xmit_priv { struct adapter *adapter; u8 vcs_setting; u8 vcs; - u8 vcs_type; 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 2f59bb994796..ae03d39de092 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -394,7 +394,6 @@ static void rtw_init_default_value(struct adapter *padapter) /* xmit_priv */ pxmitpriv->vcs_setting = pregistrypriv->vrtl_carrier_sense; pxmitpriv->vcs = pregistrypriv->vcs_type; - pxmitpriv->vcs_type = pregistrypriv->vcs_type; pxmitpriv->frag_len = pregistrypriv->frag_thresh; /* mlme_priv */