mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mac80211: remove sta_remove_debugfs driver callback
No drivers implement this, relying either on the recursive directory removal to remove their debugfs, or not having any to start with. Remove the dead driver callback. Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
8826fef95b
commit
c7e9dbcf09
3 changed files with 2 additions and 28 deletions
|
|
@ -544,10 +544,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
|
|||
|
||||
void ieee80211_sta_debugfs_remove(struct sta_info *sta)
|
||||
{
|
||||
struct ieee80211_local *local = sta->local;
|
||||
struct ieee80211_sub_if_data *sdata = sta->sdata;
|
||||
|
||||
drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs_dir);
|
||||
debugfs_remove_recursive(sta->debugfs_dir);
|
||||
sta->debugfs_dir = NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -499,21 +499,6 @@ static inline void drv_sta_add_debugfs(struct ieee80211_local *local,
|
|||
local->ops->sta_add_debugfs(&local->hw, &sdata->vif,
|
||||
sta, dir);
|
||||
}
|
||||
|
||||
static inline void drv_sta_remove_debugfs(struct ieee80211_local *local,
|
||||
struct ieee80211_sub_if_data *sdata,
|
||||
struct ieee80211_sta *sta,
|
||||
struct dentry *dir)
|
||||
{
|
||||
might_sleep();
|
||||
|
||||
sdata = get_bss_sdata(sdata);
|
||||
check_sdata_in_driver(sdata);
|
||||
|
||||
if (local->ops->sta_remove_debugfs)
|
||||
local->ops->sta_remove_debugfs(&local->hw, &sdata->vif,
|
||||
sta, dir);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local,
|
||||
|
|
|
|||
Loading…
Reference in a new issue