Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp802820rdg; Fri, 13 Oct 2023 01:12:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlApR7AYBEj2I3EFNJ1nsHQlWSfwo8KoYqMjUB5V0puWpzg9ZplcHhVg84oIwX0TvGyJ1q X-Received: by 2002:a25:27ca:0:b0:d78:6f1:41b4 with SMTP id n193-20020a2527ca000000b00d7806f141b4mr23516490ybn.30.1697184751537; Fri, 13 Oct 2023 01:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697184751; cv=none; d=google.com; s=arc-20160816; b=OQblHfa0dKVgK1h+UVs+UT7mmaref32LaPyTH4y+FtedK63g3wqNh/aErZTo+YNg7r 0xGVyTVMOpw3/wu4AsaxaPIdHQa43P9ZByGHz1qv84EROBADwRdEWpAvYqdvykTSrOby eJuovexNejb0eKStRJfveMzZ7vqyb5CwpJ4rJ2uCz4Qreo5mt5ZasOnuP4h42/DLNWxU frKpRBDlxme3aejduyAckZYjZHhZNS1Xw3r5etdkHdd/AaJedsA33oKBfz26gAjV2QhI x0u3cEtIJgtBzaEh97gK4AToez/lh+XO3x83pYef6RgYlKbh7DTN5oI/OPor6LOldvqR 2f9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=PlfH0pYqZuItv92NxsdXJ7MMPCTJnOwEQzI5SGeFB+I=; fh=pZpLv3JBu7ewThcXtBU3x3uGUeTqUHmHtpmV6AvLzGM=; b=dnInzg9IagiSxQv1x8DLY1Xsp015Tz2DJ907H5p2jOD9AJmX+JeetaXx+Nb3fsxNAg XXNzUIRYyFa+1eWZiVYW7JPTbyJuuJsh7gYpIRs3oUwl1sTijhENrnPpEAb1R34zOYX2 H7JnA5TnV7iV6FkpmNir4Hyx1ucKcksOgwK3jMfMmpMWQXrqekXt3uW/8K8Cl7RvRzxR K4VIlK75Fmxd+ZIyuQBDbihijvbPqA7HLWfCF6HBnLIVCxKimHFS3M0UUt7vj3Z+61kB hBcKOOTICDaL8N8fhK5V40NYnE0xjLhS6w1nG2PoFU2a3DxDryxUl9c6k2wIKQIg/ILs IxIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d19-20020a056a0010d300b0068fdff873f6si17019907pfu.173.2023.10.13.01.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 10689808FA72; Fri, 13 Oct 2023 01:11:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjJMILt convert rfc822-to-8bit (ORCPT + 52 others); Fri, 13 Oct 2023 04:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbjJMILp (ORCPT ); Fri, 13 Oct 2023 04:11:45 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A186DE6 for ; Fri, 13 Oct 2023 01:11:40 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39D8BTZk82526398, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 39D8BTZk82526398 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Oct 2023 16:11:29 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 13 Oct 2023 16:11:29 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 13 Oct 2023 16:11:28 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Fri, 13 Oct 2023 16:11:28 +0800 From: Ping-Ke Shih To: Dmitry Antipov CC: Kalle Valo , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH 1/2] wifi: rtlwifi: cleanup struct rtl_ps_ctl Thread-Topic: [PATCH 1/2] wifi: rtlwifi: cleanup struct rtl_ps_ctl Thread-Index: AQHZ/FoulYvRw5Dw6USDK7ijEJ2gv7BHYLTw Date: Fri, 13 Oct 2023 08:11:28 +0000 Message-ID: References: <20231011154442.52457-1-dmantipov@yandex.ru> In-Reply-To: <20231011154442.52457-1-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.69.25] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:11:55 -0700 (PDT) > -----Original Message----- > From: Dmitry Antipov > Sent: Wednesday, October 11, 2023 11:45 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; Dmitry Antipov > Subject: [PATCH 1/2] wifi: rtlwifi: cleanup struct rtl_ps_ctl > > Remove set but otherwise unused 'sleep_ms', 'last_action', > and 'last_slept' members of 'struct rtl_ps_ctl' (these > seems to be a leftovers from some older code) and adjust > 'rtl_swlps_wq_callback()' accordingly. > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/realtek/rtlwifi/ps.c | 10 ---------- > drivers/net/wireless/realtek/rtlwifi/wifi.h | 3 --- > 2 files changed, 13 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtlwifi/ps.c b/drivers/net/wireless/realtek/rtlwifi/ps.c > index 629c03271bde..ba61fcec9fae 100644 > --- a/drivers/net/wireless/realtek/rtlwifi/ps.c > +++ b/drivers/net/wireless/realtek/rtlwifi/ps.c > @@ -688,16 +688,6 @@ void rtl_swlps_wq_callback(struct work_struct *work) > /* we can sleep after ps null send ok */ > if (rtlpriv->psc.state_inap) { > rtl_swlps_rf_sleep(hw); > - > - if (rtlpriv->psc.state && !ps) { > - rtlpriv->psc.sleep_ms = jiffies_to_msecs(jiffies - > - rtlpriv->psc.last_action); > - } > - > - if (ps) > - rtlpriv->psc.last_slept = jiffies; > - > - rtlpriv->psc.last_action = jiffies; > rtlpriv->psc.state = ps; 'state' is also unused. > } > } > diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h > index 47b4685b6d24..cabf6c82a639 100644 > --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h > +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h > @@ -2037,14 +2037,11 @@ struct rtl_ps_ctl { > bool multi_buffered; > u16 nullfunc_seq; > unsigned int dtim_counter; > - unsigned int sleep_ms; > unsigned long last_sleep_jiffies; > unsigned long last_awake_jiffies; > unsigned long last_delaylps_stamp_jiffies; > unsigned long last_dtim; > unsigned long last_beacon; > - unsigned long last_action; > - unsigned long last_slept; > > /*For P2P PS */ > struct rtl_p2p_ps_info p2p_ps_info; > -- > 2.41.0