提交 f703fd37 编写于 作者: Y YueHaibing 提交者: Ingo Molnar

x86/cpu: Drop pointless static qualifier in punit_dev_state_show()

There is no need to have the 'struct dentry *dev_state' variable static
since new value always be assigned before use it.
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Link: http://lkml.kernel.org/r/1539340822-117563-1-git-send-email-yuehaibing@huawei.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 8f51ba8e
...@@ -115,7 +115,7 @@ static struct dentry *punit_dbg_file; ...@@ -115,7 +115,7 @@ static struct dentry *punit_dbg_file;
static int punit_dbgfs_register(struct punit_device *punit_device) static int punit_dbgfs_register(struct punit_device *punit_device)
{ {
static struct dentry *dev_state; struct dentry *dev_state;
punit_dbg_file = debugfs_create_dir("punit_atom", NULL); punit_dbg_file = debugfs_create_dir("punit_atom", NULL);
if (!punit_dbg_file) if (!punit_dbg_file)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册