From patchwork Mon Jan 30 19:52:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 4729 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2367321wrn; Mon, 30 Jan 2023 11:57:45 -0800 (PST) X-Google-Smtp-Source: AK7set9VXPfN40Yo/fPPUf82poaKqGiHgpM4UkRAR93aVNdVVqIuy/B2DDq/LS9UC2WqmNq69ynJ X-Received: by 2002:a17:902:d48d:b0:196:4f0d:c31f with SMTP id c13-20020a170902d48d00b001964f0dc31fmr18498451plg.12.1675108665192; Mon, 30 Jan 2023 11:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675108665; cv=none; d=google.com; s=arc-20160816; b=UA8ISfBklcpDDE9iLY1UxQtfTIuVIlYg8feA9Q6YS7HT7eOHw4cNxCTRRDH6ZkFs/B jZWfRJnTnhcDCJ0BwKR0lpz/ndE9wD3LqiFnfjQIBrVnjoh+daXFm/7yUgRzdT7f+lKW EKuv5fHN0uZs4/ysZCAbiR0Kf9eWdXVIkIxjjyTaSpUxYQRYevy7JhhZaT+Go+B0YQ5/ K7zT4NFSleGUv6PJHROnV0V7KxtQMhtjRK9a9uORG80WMPomBNSI4GEit0k1neWeom5V R65h2LRXx9lBjtRZpHmj31dl1OFFW3M6hy2nxCMLaBB0TvA5OzXiap8QRRf548eeIjw0 xs7w== 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 :message-id:date:subject:cc:to:from; bh=tk2es0VIOTHTDirWDpcfdTFIkl2sYUTOV89HBRnydS8=; b=HVNqr8Ynn6rBJQXiDdauT/aBIvbYB2Rwzf/Y8piNhitK86ZNl4nZj4rTYD/PWkpAen iVk1zTbemhEpnZ15nqDh7y8lR4X4vr0Ohndy3/xsoqHTp/6QVw5/448DROOry9Kfjd6A jwTZJANBru/08PHFdYGvO0iL3sGC/5aiRSEHB+QoBECwol5lf9I59TPNuLA2Jlf8kUQt y2Y+spYW8Tfz+aoiIS+ycYxQ5BmsEDkIzmuISzGRzAh0hERBoKhVi+QYS3MwM66Ca8cC SFVKJPtjb9h7AvQH+Xt0fe5ILFGBJxsGKM7GE5tMhAUnPHNQj0V3c1dL5VIntrc4yYTB Af6g== 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 e18-20020a170902cf5200b0019257c9a24esi6973553plg.67.2023.01.30.11.57.33; Mon, 30 Jan 2023 11:57:45 -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 S237911AbjA3Txa (ORCPT + 99 others); Mon, 30 Jan 2023 14:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237598AbjA3TxZ (ORCPT ); Mon, 30 Jan 2023 14:53:25 -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 142AE3E630 for ; Mon, 30 Jan 2023 11:53:23 -0800 (PST) Received: from dslb-188-097-040-029.188.097.pools.vodafone-ip.de ([188.97.40.29] 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 1pMaDM-0007S2-0D; Mon, 30 Jan 2023 20:53:16 +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 0/9] staging: r8188eu: another round of xmit cleanups Date: Mon, 30 Jan 2023 20:52:54 +0100 Message-Id: <20230130195303.138941-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 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?1756478743436803009?= X-GMAIL-MSGID: =?utf-8?q?1756478743436803009?= Here's some more cleanups for the xmit code. Amongst other things, there's one more __queue that can be replaced with a list_head. Martin Kaiser (9): staging: r8188eu: rtw_free_xmitframe_queue needs no spinlock staging: r8188eu: change function param from __queue to list_head staging: r8188eu: change another function param from __queue to list_head staging: r8188eu: make sta_pending a list_head staging: r8188eu: use kernel helper to iterate over a list staging: r8188eu: legacy_dz is initialised but never used staging: r8188eu: apsd is initialised but never used staging: r8188eu: option in struct sta_xmit_priv is not used staging: r8188eu: replace switch-case with if drivers/staging/r8188eu/core/rtw_sta_mgt.c | 10 +++--- drivers/staging/r8188eu/core/rtw_xmit.c | 31 +++++-------------- drivers/staging/r8188eu/hal/rtl8188eu_xmit.c | 4 +-- drivers/staging/r8188eu/include/rtw_xmit.h | 8 ++--- .../staging/r8188eu/os_dep/usb_ops_linux.c | 8 +---- 5 files changed, 18 insertions(+), 43 deletions(-)