Skip to contentSkip to conversation

ath9k: remove variable sent

PATCH In review Colin Ian King 3 participants 3 messages Oct 24, 2022 – Nov 2, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: remove variable sent

Variable sent is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.

---
 drivers/net/wireless/ath/ath9k/xmit.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/ath/ath9k/xmit.c +0 -2
index ba271a10d4ab..39abb59d8771 100644
@@ -1678,7 +1678,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
 	struct ieee80211_tx_info *info;
 	struct list_head bf_q;
 	struct ath_buf *bf_tail = NULL, *bf = NULL;
-	int sent = 0;
 	int i, ret;
 
 	INIT_LIST_HEAD(&bf_q);
@@ -1707,7 +1706,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
 
 			bf_tail = bf;
 			nframes--;
-			sent++;
 			TX_STAT_INC(sc, txq->axq_qnum, a_queued_hw);
 
 			if (an->sta && skb_queue_empty(&tid->retry_q))
Signature · 1 line
2.37.3
#2 lore raw
In reply to Colin Ian King
Quoted 7 lines · Colin Ian King

Variable sent is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.

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

4f6620cd6bbd wifi: ath9k: remove variable sent

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

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