Skip to content

Commit 4255a07

Browse files
jmberg-intelkvalo
authored andcommitted
wil6210: remove 'freq' debugfs
This is completely racy, remove it. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/20220506095451.9852305a92c8.I05155824a1b9059eb59beccde81786dc69de354a@changeid
1 parent 1d7f514 commit 4255a07

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/net/wireless/ath/wil6210/debugfs.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,19 +1391,6 @@ static int temp_show(struct seq_file *s, void *data)
13911391
}
13921392
DEFINE_SHOW_ATTRIBUTE(temp);
13931393

1394-
/*---------freq------------*/
1395-
static int freq_show(struct seq_file *s, void *data)
1396-
{
1397-
struct wil6210_priv *wil = s->private;
1398-
struct wireless_dev *wdev = wil->main_ndev->ieee80211_ptr;
1399-
u32 freq = wdev->chandef.chan ? wdev->chandef.chan->center_freq : 0;
1400-
1401-
seq_printf(s, "Freq = %d\n", freq);
1402-
1403-
return 0;
1404-
}
1405-
DEFINE_SHOW_ATTRIBUTE(freq);
1406-
14071394
/*---------link------------*/
14081395
static int link_show(struct seq_file *s, void *data)
14091396
{
@@ -2380,7 +2367,6 @@ static const struct {
23802367
{"pmcdata", 0444, &fops_pmcdata},
23812368
{"pmcring", 0444, &fops_pmcring},
23822369
{"temp", 0444, &temp_fops},
2383-
{"freq", 0444, &freq_fops},
23842370
{"link", 0444, &link_fops},
23852371
{"info", 0444, &info_fops},
23862372
{"recovery", 0644, &fops_recovery},

0 commit comments

Comments
 (0)