rtw88: remove unused vif pointer in struct rtw_vif
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 20 Dec 2019 09:21:53 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:10 +0000 (17:38 +0200)
As driver can easily get vif with container_of(), we can
just remove it.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.h

index c8be4b4..6fc33e1 100644 (file)
@@ -153,7 +153,6 @@ static int rtw_ops_add_interface(struct ieee80211_hw *hw,
        u8 bcn_ctrl = 0;
 
        rtwvif->port = port;
-       rtwvif->vif = vif;
        rtwvif->stats.tx_unicast = 0;
        rtwvif->stats.rx_unicast = 0;
        rtwvif->stats.tx_cnt = 0;
index 107b17c..f334d20 100644 (file)
@@ -736,7 +736,6 @@ struct rtw_bf_info {
 };
 
 struct rtw_vif {
-       struct ieee80211_vif *vif;
        enum rtw_net_type net_type;
        u16 aid;
        u8 mac_addr[ETH_ALEN];