From patchwork Wed Jan 11 19:56:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 42167 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3509124wrt; Wed, 11 Jan 2023 11:58:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtH0Cktk6HXurZWgWut3lCACeIKAT6KTFjBIYMrcaKZD/K5G6WvaiI19jDT4MD2C2HGwMGh X-Received: by 2002:a05:6a20:4f26:b0:b6:5bde:3064 with SMTP id gi38-20020a056a204f2600b000b65bde3064mr2131402pzb.16.1673467092688; Wed, 11 Jan 2023 11:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673467092; cv=none; d=google.com; s=arc-20160816; b=A5yTSsDivoYMnrTgzYpG8nIy/z09eVt3mRZV2aU4/bFx1o8k8j0lfjY9EsOIQJYKUI 8Yx6pH2j4NtkHe5H/ZpszTTFgTsOzNqPhSXEPlihsJAbZC62+S8hbisSmQN+9OQwdkgY 5S2D9PnAAUq0208S6utDNPGTkwvdF0K7IPgi9BpifiIXWjVEhvfwDbM6uCFeyPo3S8Zc 9txLxDxY36pQgHfg93K1m+qpx8ahvfRF6A8tudq8Bt+UbyLFp3asNVWjFrNPcAwmCIL1 D0hJOjf+z8Ulf3I9skyqrDcWYwUHV91W0BCSnJB22OCCk52w40qWAC6l92wtowcc42du tYvg== 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=10c9fxlhmmuaW3xxqHH313/Gqv6PAYuVacC3RG7PG14=; b=V/UdFIzPCK0tjclqne21AcXZLLyJaF0wXVfhG1szx0ZqDG9W1iKmIP0CX7f3g4KJ+p 9SuCyt5Z7PNjQcExG0Ql222RdNF83IZVU9QGEaf3w9rbrnXr/1r+DarfJZwqirKenjhb oXhi0lecLiOCbnLL/UAMfOpOThX1O6nnfyKN18frdJNoVE8OssRJdW82l/kTvi9m9+za Hnhs6P9c3CaHMtMjIstqR3NuBlIVpvAOX2v8ejve0e1kdHxij6bAAzhKvKcJc7hPXP5s 7DbvXbQWwGOlByZ03W69ldc6bljm6wfBsVt0ET5gxfgRaMqlK7FuB5Bm5B+lMP51pVz1 r0Qw== 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 24-20020a631258000000b0048be2671cd0si10195814pgs.170.2023.01.11.11.58.00; Wed, 11 Jan 2023 11:58:12 -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 S239348AbjAKT5k (ORCPT + 99 others); Wed, 11 Jan 2023 14:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234409AbjAKT5F (ORCPT ); Wed, 11 Jan 2023 14:57:05 -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 2A287BA5 for ; Wed, 11 Jan 2023 11:57:04 -0800 (PST) Received: from dslb-188-096-145-172.188.096.pools.vodafone-ip.de ([188.96.145.172] 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 1pFhDV-0005F2-Tu; Wed, 11 Jan 2023 20:56:57 +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 06/20] staging: r8188eu: remove struct io_queue Date: Wed, 11 Jan 2023 20:56:26 +0100 Message-Id: <20230111195640.306748-7-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230111195640.306748-1-martin@kaiser.cx> References: <20230111195640.306748-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?1754757430146361480?= X-GMAIL-MSGID: =?utf-8?q?1754757430146361480?= struct io_queue is not used in the r8188eu driver. Remove it. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_io.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 6ce099e91e20..7d1f3cc20b57 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -82,7 +82,6 @@ struct intf_priv; struct intf_hdl; -struct io_queue; struct io_req { struct list_head list; @@ -188,21 +187,6 @@ struct reg_protocol_wt { #endif }; -/* -Below is the data structure used by _io_handler -*/ - -struct io_queue { - spinlock_t lock; - struct list_head free_ioreqs; - struct list_head pending; /* The io_req list that will be served - * in the single protocol read/write.*/ - struct list_head processing; - u8 *free_ioreqs_buf; /* 4-byte aligned */ - u8 *pallocated_free_ioreqs_buf; - struct intf_hdl intf; -}; - uint register_intf_hdl(u8 *dev, struct intf_hdl *pintfhdl); void unregister_intf_hdl(struct intf_hdl *pintfhdl);