diff options
author | Amadeusz Sławiński <amadeusz.slawinski@tieto.com> | 2017-02-13 13:38:37 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2017-02-14 20:38:15 +0300 |
commit | 56ac13bfc703d5189e8b91c5c2f512830d1cb013 (patch) | |
tree | 61b3e6612dfe7851046077004317fac972f41c19 /drivers/net/wireless/ath/ath10k/p2p.c | |
parent | 3b03cc0783b03ddd668ff3f86419bc67d0664e89 (diff) | |
download | linux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.tar.xz |
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/p2p.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/p2p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/p2p.c b/drivers/net/wireless/ath/ath10k/p2p.c index c0b6ffaf3ec1..7e621ee194e3 100644 --- a/drivers/net/wireless/ath/ath10k/p2p.c +++ b/drivers/net/wireless/ath/ath10k/p2p.c @@ -132,7 +132,7 @@ struct ath10k_p2p_noa_arg { static void ath10k_p2p_noa_update_vdev_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; struct ath10k_p2p_noa_arg *arg = data; if (arvif->vdev_id != arg->vdev_id) |