Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9062038rwd; Wed, 21 Jun 2023 02:27:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pCoi1IhJ1inRY5voqCgJsFn/o6ETCWW67mi4Sr50F/AXGR6zSV2q4h0Ghd57eAsyt7ndu X-Received: by 2002:a05:6808:4291:b0:39a:bc60:adf9 with SMTP id dq17-20020a056808429100b0039abc60adf9mr11691204oib.7.1687339634752; Wed, 21 Jun 2023 02:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687339634; cv=none; d=google.com; s=arc-20160816; b=DXp3RajEC2tPv0r+OB+mnkoR29EAFeqLIWv/l3pmUA7GN9lbBi17S3GWa0UImVOrg0 7lZMYS1AtDcCANbrPyLIXoUJcbEqpI3YmyrwQsAPkslYqed7bKUGlRkZAr7aBy0+IHL6 pO3owTZWauGa7J1x2xR4Adx5w3jF2sQwC/cRB746CQ+3YGZfclbRdmotGiv9m92/+qqH yfrJAeCVVWarPnXjKO7GumuyEABOlSt5qpWo+aJ6Aj5Tk7q5xvrKZOQ/L19dEoyRVLTY A+O8dbZ5MOnapjU4IF4GSkBdVMRRLQRrZC3IRNKVp1jFwGc844jffnNbd3DrVFahCnMr cwJw== 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 :dkim-signature; bh=8IjgY5bD/ModHaUfxvgtvns6gPoDEdZ2Uq559mzN9E0=; b=cebH7CvxJQMZEk5OjYlvHRHT07vKVitnS9bQojpkT2Gusash8Vz6f+81Hm7ffPmhSo Mjdgj0aErSPm7OWYaSI6yOKILM+xUqNuF+89479T58KPcJ6KhPhkBnvFx5uobzuu9wkc kwNIIYk1qRWI4q/glMsHpNPvC7vfKr1denzuqtpm/hUc7dIpB79Diyzi2KnzqV6WlGJi 9866/XF9ASeOZk3yIaPk14FIOtbqs9y8K3Lk3e6OkNaaAn2ZLFacWKAGuWBvQgtEyisd E8VtLpo4Jq/jaHJxuypgj8SFP5Xax+sc80zZ8PDC0xz7EVuUCJe+TsvGB0t5oXU9EA8A FZuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=JA+AXyXW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a17090a8d0e00b0025e9df04869si11460418pjo.164.2023.06.21.02.27.07; Wed, 21 Jun 2023 02:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=pass header.i=@yandex.ru header.s=mail header.b=JA+AXyXW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbjFUJXy (ORCPT + 59 others); Wed, 21 Jun 2023 05:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbjFUJXx (ORCPT ); Wed, 21 Jun 2023 05:23:53 -0400 Received: from forward101a.mail.yandex.net (forward101a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB8119AC for ; Wed, 21 Jun 2023 02:23:21 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:f15:0:640:e80a:0]) by forward101a.mail.yandex.net (Yandex) with ESMTP id ADB7846D06; Wed, 21 Jun 2023 12:23:18 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id FNeUOg7DXeA0-MawOopcL; Wed, 21 Jun 2023 12:23:18 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687339398; bh=8IjgY5bD/ModHaUfxvgtvns6gPoDEdZ2Uq559mzN9E0=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=JA+AXyXWBqfaemtyg7MxLWHJSy36UOJOAuFhZ6Uy56XT6KrBBOjoH01iBJi1EYUJf 57DfmX+kbvdMoaeoNAJOia2qneYfboGLzg4y0cuWcFfuhz0ZvKnwQHGY2ujn6CKFGu CqlQ9s+FJWBIND+CcpdoV3TAzP3oaVBuLLxfuKWc= Authentication-Results: mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Ping-Ke Shih Cc: Sascha Hauer , Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov Subject: [PATCH 2/3] [v4] wifi: rtw88: remove unused and set but unused leftovers Date: Wed, 21 Jun 2023 12:22:14 +0300 Message-ID: <20230621092313.65965-2-dmantipov@yandex.ru> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621092313.65965-1-dmantipov@yandex.ru> References: <20230621092313.65965-1-dmantipov@yandex.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-wireless@vger.kernel.org Drop unused and set but unused 'last_push' of 'struct rtw_txq', 'wireless_set' of 'struct rtw_sta_info', 'usb_txagg_num' of 'struct rtw_usb' and 'n' of 'struct rx_usb_ctrl_block', adjust related code. Signed-off-by: Dmitry Antipov --- v4: adjust to match series --- drivers/net/wireless/realtek/rtw88/main.c | 1 - drivers/net/wireless/realtek/rtw88/main.h | 3 --- drivers/net/wireless/realtek/rtw88/tx.c | 2 -- drivers/net/wireless/realtek/rtw88/usb.c | 1 - drivers/net/wireless/realtek/rtw88/usb.h | 2 -- 5 files changed, 9 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index c190598c47c3..64fd527286e1 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -1300,7 +1300,6 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si, si->stbc_en = stbc_en; si->ldpc_en = ldpc_en; si->rf_type = rf_type; - si->wireless_set = wireless_set; si->sgi_enable = is_support_sgi; si->vht_enable = is_vht_enable; si->ra_mask = ra_mask; diff --git a/drivers/net/wireless/realtek/rtw88/main.h b/drivers/net/wireless/realtek/rtw88/main.h index 9e841f6991a9..265ae9456f06 100644 --- a/drivers/net/wireless/realtek/rtw88/main.h +++ b/drivers/net/wireless/realtek/rtw88/main.h @@ -734,9 +734,7 @@ struct rtw_ra_report { struct rtw_txq { struct list_head list; - unsigned long flags; - unsigned long last_push; }; #define RTW_BC_MC_MACID 1 @@ -754,7 +752,6 @@ struct rtw_sta_info { u8 rate_id; enum rtw_bandwidth bw_mode; enum rtw_rf_type rf_type; - enum rtw_wireless_set wireless_set; u8 stbc_en:2; u8 ldpc_en:2; bool sgi_enable; diff --git a/drivers/net/wireless/realtek/rtw88/tx.c b/drivers/net/wireless/realtek/rtw88/tx.c index bb5c7492c98b..3a4c37fdfeb1 100644 --- a/drivers/net/wireless/realtek/rtw88/tx.c +++ b/drivers/net/wireless/realtek/rtw88/tx.c @@ -592,8 +592,6 @@ static int rtw_txq_push_skb(struct rtw_dev *rtwdev, rtw_err(rtwdev, "failed to write TX skb to HCI\n"); return ret; } - rtwtxq->last_push = jiffies; - return 0; } diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c index 976eafa739a2..6862338b1d51 100644 --- a/drivers/net/wireless/realtek/rtw88/usb.c +++ b/drivers/net/wireless/realtek/rtw88/usb.c @@ -647,7 +647,6 @@ static int rtw_usb_alloc_rx_bufs(struct rtw_usb *rtwusb) for (i = 0; i < RTW_USB_RXCB_NUM; i++) { struct rx_usb_ctrl_block *rxcb = &rtwusb->rx_cb[i]; - rxcb->n = i; rxcb->rtwdev = rtwusb->rtwdev; rxcb->rx_urb = usb_alloc_urb(0, GFP_KERNEL); if (!rxcb->rx_urb) diff --git a/drivers/net/wireless/realtek/rtw88/usb.h b/drivers/net/wireless/realtek/rtw88/usb.h index ad1d7955c6a5..fad998005ec8 100644 --- a/drivers/net/wireless/realtek/rtw88/usb.h +++ b/drivers/net/wireless/realtek/rtw88/usb.h @@ -58,7 +58,6 @@ struct rx_usb_ctrl_block { struct rtw_dev *rtwdev; struct urb *rx_urb; struct sk_buff *rx_skb; - int n; }; struct rtw_usb_tx_data { @@ -79,7 +78,6 @@ struct rtw_usb { u8 pipe_in; u8 out_ep[RTW_USB_EP_MAX]; int qsel_to_ep[TX_DESC_QSEL_MAX]; - u8 usb_txagg_num; struct workqueue_struct *txwq, *rxwq; -- 2.41.0