mac80211: minstrel: remove unnecessary debugfs cleanup code
debugfs entries are cleaned up by debugfs_remove_recursive already. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
f458e832ba
commit
5b5e87314e
@@ -214,19 +214,7 @@ minstrel_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir)
|
||||
{
|
||||
struct minstrel_sta_info *mi = priv_sta;
|
||||
|
||||
mi->dbg_stats = debugfs_create_file("rc_stats", 0444, dir, mi,
|
||||
&minstrel_stat_fops);
|
||||
|
||||
mi->dbg_stats_csv = debugfs_create_file("rc_stats_csv", 0444, dir, mi,
|
||||
&minstrel_stat_csv_fops);
|
||||
}
|
||||
|
||||
void
|
||||
minstrel_remove_sta_debugfs(void *priv, void *priv_sta)
|
||||
{
|
||||
struct minstrel_sta_info *mi = priv_sta;
|
||||
|
||||
debugfs_remove(mi->dbg_stats);
|
||||
|
||||
debugfs_remove(mi->dbg_stats_csv);
|
||||
debugfs_create_file("rc_stats", 0444, dir, mi, &minstrel_stat_fops);
|
||||
debugfs_create_file("rc_stats_csv", 0444, dir, mi,
|
||||
&minstrel_stat_csv_fops);
|
||||
}
|
||||
|
Reference in New Issue
Block a user