提交 25fa4d9d 编写于 作者: G Greg Kroah-Hartman 提交者: Rafael J. Wysocki

drivers: base: power: remove wakeup_sources_stats_dentry variable

wakeup_sources_stats_dentry is assigned when the debugfs file is
created, but then never used ever again.  So no need for it at all, just
remove it and call debugfs_create_file() on its own.
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 0b385a0c
...@@ -968,8 +968,6 @@ void pm_wakep_autosleep_enabled(bool set) ...@@ -968,8 +968,6 @@ void pm_wakep_autosleep_enabled(bool set)
} }
#endif /* CONFIG_PM_AUTOSLEEP */ #endif /* CONFIG_PM_AUTOSLEEP */
static struct dentry *wakeup_sources_stats_dentry;
/** /**
* print_wakeup_source_stats - Print wakeup source statistics information. * print_wakeup_source_stats - Print wakeup source statistics information.
* @m: seq_file to print the statistics into. * @m: seq_file to print the statistics into.
...@@ -1099,8 +1097,8 @@ static const struct file_operations wakeup_sources_stats_fops = { ...@@ -1099,8 +1097,8 @@ static const struct file_operations wakeup_sources_stats_fops = {
static int __init wakeup_sources_debugfs_init(void) static int __init wakeup_sources_debugfs_init(void)
{ {
wakeup_sources_stats_dentry = debugfs_create_file("wakeup_sources", debugfs_create_file("wakeup_sources", S_IRUGO, NULL, NULL,
S_IRUGO, NULL, NULL, &wakeup_sources_stats_fops); &wakeup_sources_stats_fops);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册