summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/mac.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeusz.slawinski@tieto.com>2017-02-13 12:38:37 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2017-02-14 19:38:15 +0200
commit56ac13bfc703d5189e8b91c5c2f512830d1cb013 (patch)
tree61b3e6612dfe7851046077004317fac972f41c19 /drivers/net/wireless/ath/ath10k/mac.h
parent3b03cc0783b03ddd668ff3f86419bc67d0664e89 (diff)
downloadtalos-op-linux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.tar.gz
talos-op-linux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.zip
ath10k: remove ath10k_vif_to_arvif()
it adds unnecessary level of indirection, while we just access structure field Signed-off-by: Amadeusz Sławiński <amadeusz.slawinski@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.h b/drivers/net/wireless/ath/ath10k/mac.h
index 1bd29ecfcdcc..553747bc19ed 100644
--- a/drivers/net/wireless/ath/ath10k/mac.h
+++ b/drivers/net/wireless/ath/ath10k/mac.h
@@ -83,17 +83,12 @@ struct ieee80211_txq *ath10k_mac_txq_lookup(struct ath10k *ar,
u8 tid);
int ath10k_mac_ext_resource_config(struct ath10k *ar, u32 val);
-static inline struct ath10k_vif *ath10k_vif_to_arvif(struct ieee80211_vif *vif)
-{
- return (struct ath10k_vif *)vif->drv_priv;
-}
-
static inline void ath10k_tx_h_seq_no(struct ieee80211_vif *vif,
struct sk_buff *skb)
{
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
if (info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) {
if (arvif->tx_seq_no == 0)
OpenPOWER on IntegriCloud