ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc()
@ 2023-11-02 11:54 Dmitry Antipov
  2023-11-02 15:02 ` Jeff Johnson
  2023-11-22 18:22 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Antipov @ 2023-11-02 11:54 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: Kalle Valo, ath10k, linux-wireless, Dmitry Antipov

Since 'ieee80211_txq_get_depth()' allows NULL for 2nd and
3rd arguments, simplify '__ath10k_htt_tx_txq_recalc()' by
dropping unused 'frame_cnt'. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
---
 drivers/net/wireless/ath/ath10k/htt_tx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c
index be4d4536aaa8..5d814162e02b 100644
--- a/drivers/net/wireless/ath/ath10k/htt_tx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_tx.c
@@ -40,7 +40,6 @@ static void __ath10k_htt_tx_txq_recalc(struct ieee80211_hw *hw,
 	struct ath10k *ar = hw->priv;
 	struct ath10k_sta *arsta;
 	struct ath10k_vif *arvif = (void *)txq->vif->drv_priv;
-	unsigned long frame_cnt;
 	unsigned long byte_cnt;
 	int idx;
 	u32 bit;
@@ -67,7 +66,7 @@ static void __ath10k_htt_tx_txq_recalc(struct ieee80211_hw *hw,
 	bit = BIT(peer_id % 32);
 	idx = peer_id / 32;
 
-	ieee80211_txq_get_depth(txq, &frame_cnt, &byte_cnt);
+	ieee80211_txq_get_depth(txq, NULL, &byte_cnt);
 	count = ath10k_htt_tx_txq_calc_size(byte_cnt);
 
 	if (unlikely(peer_id >= ar->htt.tx_q_state.num_peers) ||
-- 
2.41.0


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc()
  2023-11-02 11:54 [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc() Dmitry Antipov
@ 2023-11-02 15:02 ` Jeff Johnson
  2023-11-22 18:22 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Johnson @ 2023-11-02 15:02 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Kalle Valo, ath10k, linux-wireless

On 11/2/2023 4:54 AM, Dmitry Antipov wrote:
> Since 'ieee80211_txq_get_depth()' allows NULL for 2nd and
> 3rd arguments, simplify '__ath10k_htt_tx_txq_recalc()' by
> dropping unused 'frame_cnt'. Compile tested only.
> 
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc()
  2023-11-02 11:54 [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc() Dmitry Antipov
  2023-11-02 15:02 ` Jeff Johnson
@ 2023-11-22 18:22 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2023-11-22 18:22 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Jeff Johnson, ath10k, linux-wireless, Dmitry Antipov

Dmitry Antipov <dmantipov@yandex.ru> wrote:

> Since 'ieee80211_txq_get_depth()' allows NULL for 2nd and
> 3rd arguments, simplify '__ath10k_htt_tx_txq_recalc()' by
> dropping unused 'frame_cnt'. Compile tested only.
> 
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

08500f6eaa91 wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20231102115459.69791-1-dmantipov@yandex.ru/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-22 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02 11:54 [PATCH] wifi: ath10k: simplify __ath10k_htt_tx_txq_recalc() Dmitry Antipov
2023-11-02 15:02 ` Jeff Johnson
2023-11-22 18:22 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).