Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9965553rwl; Wed, 11 Jan 2023 12:29:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXuczbCkEuAgjseivqsUmfODUe7acaqKGM90/gocxDE01xtRazw+/IimMnkwAVKYPyd4SRmv X-Received: by 2002:a17:903:183:b0:189:d066:821a with SMTP id z3-20020a170903018300b00189d066821amr97456195plg.41.1673468978790; Wed, 11 Jan 2023 12:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673468978; cv=none; d=google.com; s=arc-20160816; b=gaC2+B6LYc3+gytvT0xxgftRcARqbSWf5oQD+X0zHjPTPZZC0sHHE7Hcp/bkXrKCB9 9udNVTj2QE3P3iat05NOTNdlF7ruDqQyuWCPd41k6/I9CzWwgP7alZhGtc1WjBlL1cHk CHtHmp0RD98kIuPTV+aBRv7PBYtA8BMQjHK8VKc9h5mfQ383zj08HSSI5zEyJtS2FLsV MzL3dqag6x6RswI0RJGD8q4dPM3OAYoZK6mXZo+r+2kO6i8pn84YuxYo8bhadtTmRElw MzZYYp8pwmwnO2QnUnxqiWUMSYGYEcrOAPcqJKrHzmEddzNJYmqZ+PKCrcG+LohqHtIk j8vQ== 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=shOVnwlnoa30gNx4hfB4z3eh8SEpgooftb+mKN07HeM=; b=KCOf1NAQg8civRVTClDEe0Dp1a+87FzGzUMmmRYh0UESzCLtPcYEjZYWP4Sve60qyB QduxusuIrgV6VaAVDveu36nF9ViiHDWIolXCdzUDDVwWMIgp2W/AASEssrv4PrULen+R CTA4iWvOABcVSAwrAdAOsyVF7jXDQ7ugZs7T0QduFdtNub7ZJaTRTgdSdBUvVmPClIxX b0XUSpluheOQ3jL8pHwH/uZn7XQmX1EF8KBCT98DMRB4bOmCybrvRis9oFWsXNhDwtQY 3QdqX+YIKWPCsFz/6ZR1pNqidTQzCcQy8eydU/llAQEOohRzj0fkYlJvsYWC6asw30CX 8lOA== 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 k14-20020a170902c40e00b00188b297f39bsi18093007plk.216.2023.01.11.12.29.32; Wed, 11 Jan 2023 12:29:38 -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 S239679AbjAKT6m (ORCPT + 51 others); Wed, 11 Jan 2023 14:58:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235549AbjAKT5O (ORCPT ); Wed, 11 Jan 2023 14:57:14 -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 C45D2E020 for ; Wed, 11 Jan 2023 11:57:13 -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 1pFhDg-0005F2-67; Wed, 11 Jan 2023 20:57:08 +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 19/20] staging: r8188eu: remove struct intf_hdl Date: Wed, 11 Jan 2023 20:56:39 +0100 Message-Id: <20230111195640.306748-20-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 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 There are no more users of struct intf_hdl in the r8188eu driver. We can now remove this struct. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/drv_types.h | 1 - drivers/staging/r8188eu/include/rtw_io.h | 6 ------ drivers/staging/r8188eu/os_dep/usb_intf.c | 6 ------ 3 files changed, 13 deletions(-) diff --git a/drivers/staging/r8188eu/include/drv_types.h b/drivers/staging/r8188eu/include/drv_types.h index 614673902377..7b170eed66b3 100644 --- a/drivers/staging/r8188eu/include/drv_types.h +++ b/drivers/staging/r8188eu/include/drv_types.h @@ -152,7 +152,6 @@ struct adapter { struct mlme_ext_priv mlmeextpriv; struct cmd_priv cmdpriv; struct evt_priv evtpriv; - struct intf_hdl intf; struct xmit_priv xmitpriv; struct recv_priv recvpriv; struct sta_priv stapriv; diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 0d2aa432f88d..033ea7146861 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -17,12 +17,6 @@ #include struct intf_priv; -struct intf_hdl; - -struct intf_hdl { - struct adapter *padapter; - struct dvobj_priv *pintf_dev; -}; int __must_check rtw_read8(struct adapter *adapter, u32 addr, u8 *data); int __must_check rtw_read16(struct adapter *adapter, u32 addr, u16 *data); diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c index 1f70e5fee1b2..1f114b1fc4d5 100644 --- a/drivers/staging/r8188eu/os_dep/usb_intf.c +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c @@ -290,7 +290,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb { struct adapter *padapter = NULL; struct net_device *pnetdev = NULL; - struct intf_hdl *pintf; int ret; padapter = vzalloc(sizeof(*padapter)); @@ -317,11 +316,6 @@ static int rtw_usb_if1_init(struct dvobj_priv *dvobj, struct usb_interface *pusb padapter->intf_start = &usb_intf_start; padapter->intf_stop = &usb_intf_stop; - /* step init_io_priv */ - pintf = &padapter->intf; - pintf->padapter = padapter; - pintf->pintf_dev = adapter_to_dvobj(padapter); - /* step read_chip_version */ rtl8188e_read_chip_version(padapter); -- 2.30.2