iwlegacy: 3945: no need to check return value of debugfs_create functions
[linux-2.6-microblaze.git] / drivers / net / wireless / intel / iwlegacy / 3945-rs.c
index a697edd..1d810ca 100644 (file)
@@ -861,17 +861,8 @@ il3945_add_debugfs(void *il, void *il_sta, struct dentry *dir)
 {
        struct il3945_rs_sta *lq_sta = il_sta;
 
-       lq_sta->rs_sta_dbgfs_stats_table_file =
-           debugfs_create_file("rate_stats_table", 0600, dir, lq_sta,
-                               &rs_sta_dbgfs_stats_table_ops);
-
-}
-
-static void
-il3945_remove_debugfs(void *il, void *il_sta)
-{
-       struct il3945_rs_sta *lq_sta = il_sta;
-       debugfs_remove(lq_sta->rs_sta_dbgfs_stats_table_file);
+       debugfs_create_file("rate_stats_table", 0600, dir, lq_sta,
+                           &rs_sta_dbgfs_stats_table_ops);
 }
 #endif
 
@@ -898,7 +889,6 @@ static const struct rate_control_ops rs_ops = {
        .free_sta = il3945_rs_free_sta,
 #ifdef CONFIG_MAC80211_DEBUGFS
        .add_sta_debugfs = il3945_add_debugfs,
-       .remove_sta_debugfs = il3945_remove_debugfs,
 #endif
 
 };