Skip to content

Commit ed4f0c1

Browse files
dmantipovKalle Valo
authored andcommitted
wifi: rtw88: simplify __rtw_tx_work()
Since 'ieee80211_txq_get_depth()' allows NULL for 2nd and 3rd arguments, simplify '__rtw_tx_work()' by dropping unused 'byte_cnt'. Compile tested only. Signed-off-by: Dmitry Antipov <[email protected]> Acked-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ca76817 commit ed4f0c1

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/wireless/realtek/rtw88

1 file changed

+1
-2
lines changed

drivers/net/wireless/realtek/rtw88/tx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,8 @@ void __rtw_tx_work(struct rtw_dev *rtwdev)
656656
list_for_each_entry_safe(rtwtxq, tmp, &rtwdev->txqs, list) {
657657
struct ieee80211_txq *txq = rtwtxq_to_txq(rtwtxq);
658658
unsigned long frame_cnt;
659-
unsigned long byte_cnt;
660659

661-
ieee80211_txq_get_depth(txq, &frame_cnt, &byte_cnt);
660+
ieee80211_txq_get_depth(txq, &frame_cnt, NULL);
662661
rtw_txq_push(rtwdev, rtwtxq, frame_cnt);
663662

664663
list_del_init(&rtwtxq->list);

0 commit comments

Comments
 (0)