diff options
author | Amadeusz Sławiński <amadeusz.slawinski@tieto.com> | 2017-02-13 11:38:37 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2017-02-14 18:38:15 +0100 |
commit | 56ac13bfc703d5189e8b91c5c2f512830d1cb013 (patch) | |
tree | 61b3e6612dfe7851046077004317fac972f41c19 /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | net: natsemi: ns83820: use new api ethtool_{get|set}_link_ksettings (diff) | |
download | linux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.tar.xz 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/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 414ad3e1eed4..2f1743e60fa1 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -1779,7 +1779,7 @@ unlock: static void ath10k_wmi_tx_beacons_iter(void *data, u8 *mac, struct ieee80211_vif *vif) { - struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); + struct ath10k_vif *arvif = (void *)vif->drv_priv; ath10k_wmi_tx_beacon_nowait(arvif); } |