diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2023-11-02 14:55:55 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-11-08 21:12:18 +0300 |
commit | ed4f0c195e8fba06fa5c1072ade7feaadb91c03d (patch) | |
tree | a3069374cd79d2079b9e00577389f0af0bdd7978 | |
parent | ca76817f4c4bbf8f98268772f4eeea8382a34bcd (diff) | |
download | linux-ed4f0c195e8fba06fa5c1072ade7feaadb91c03d.tar.xz |
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 <dmantipov@yandex.ru>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231102115606.69838-1-dmantipov@yandex.ru
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/tx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/tx.c b/drivers/net/wireless/realtek/rtw88/tx.c index f63900b6621d..c02ac673be32 100644 --- a/drivers/net/wireless/realtek/rtw88/tx.c +++ b/drivers/net/wireless/realtek/rtw88/tx.c @@ -656,9 +656,8 @@ void __rtw_tx_work(struct rtw_dev *rtwdev) list_for_each_entry_safe(rtwtxq, tmp, &rtwdev->txqs, list) { struct ieee80211_txq *txq = rtwtxq_to_txq(rtwtxq); unsigned long frame_cnt; - unsigned long byte_cnt; - ieee80211_txq_get_depth(txq, &frame_cnt, &byte_cnt); + ieee80211_txq_get_depth(txq, &frame_cnt, NULL); rtw_txq_push(rtwdev, rtwtxq, frame_cnt); list_del_init(&rtwtxq->list); |