Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

carl9170: remove get_tid_h

'get_tid_h()' is the same as 'ieee80211_get_tid()'.
So this function can be removed to save a few lines of code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/68efad7a597159e22771d37fc8b4a8a613866d60.1617399010.git.christophe.jaillet@wanadoo.fr

authored by

Christophe JAILLET and committed by
Kalle Valo
cf366b15 a8e083ee

+2 -7
+1 -6
drivers/net/wireless/ath/carl9170/carl9170.h
··· 631 631 return get_seq_h(carl9170_get_hdr(skb)); 632 632 } 633 633 634 - static inline u16 get_tid_h(struct ieee80211_hdr *hdr) 635 - { 636 - return (ieee80211_get_qos_ctl(hdr))[0] & IEEE80211_QOS_CTL_TID_MASK; 637 - } 638 - 639 634 static inline u16 carl9170_get_tid(struct sk_buff *skb) 640 635 { 641 - return get_tid_h(carl9170_get_hdr(skb)); 636 + return ieee80211_get_tid(carl9170_get_hdr(skb)); 642 637 } 643 638 644 639 static inline struct ieee80211_vif *
+1 -1
drivers/net/wireless/ath/carl9170/tx.c
··· 394 394 if (unlikely(!sta)) 395 395 goto out_rcu; 396 396 397 - tid = get_tid_h(hdr); 397 + tid = ieee80211_get_tid(hdr); 398 398 399 399 sta_info = (void *) sta->drv_priv; 400 400 tid_info = rcu_dereference(sta_info->agg[tid]);