diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-08-13 14:33:26 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-16 00:07:57 +0400 |
commit | f5bde5b8524fb2b8584af3750dbffda6557234e6 (patch) | |
tree | 4f1377bf7d93b6430a79d7a28f20cd95303f2448 /drivers/net/wireless/ath/ath9k/debug.c | |
parent | 50676b811148314f43f0d874502fe9ac5f7d686d (diff) | |
download | linux-f5bde5b8524fb2b8584af3750dbffda6557234e6.tar.xz |
ath9k: remove ath9k_sta_remove_debugfs
mac80211 uses debugfs_remove_recursive, so there's no need for the
driver to do an explicit cleanup of its sta debugfs entry.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index c10cec5650c6..e5c8333eb55a 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -1725,17 +1725,7 @@ void ath9k_sta_add_debugfs(struct ieee80211_hw *hw, struct dentry *dir) { struct ath_node *an = (struct ath_node *)sta->drv_priv; - an->node_stat = debugfs_create_file("node_stat", S_IRUGO, - dir, an, &fops_node_stat); -} - -void ath9k_sta_remove_debugfs(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_sta *sta, - struct dentry *dir) -{ - struct ath_node *an = (struct ath_node *)sta->drv_priv; - debugfs_remove(an->node_stat); + debugfs_create_file("node_stat", S_IRUGO, dir, an, &fops_node_stat); } /* Ethtool support for get-stats */ |