projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f51ba8
)
x86/cpu: Drop pointless static qualifier in punit_dev_state_show()
author
YueHaibing
<
[email protected]
>
Fri, 12 Oct 2018 10:40:22 +0000
(10:40 +0000)
committer
Ingo Molnar
<
[email protected]
>
Fri, 12 Oct 2018 10:48:44 +0000
(12:48 +0200)
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: YueHaibing <
[email protected]
>
Cc: Andy Shevchenko <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/platform/atom/punit_atom_debug.c
patch
|
blob
|
history
diff --git
a/arch/x86/platform/atom/punit_atom_debug.c
b/arch/x86/platform/atom/punit_atom_debug.c
index 41dae0f0d898edb1bb19c6fbc71140849c34b4e6..6cb6076223bac8a1dc93d0f4179f24d97815056e 100644
(file)
--- a/
arch/x86/platform/atom/punit_atom_debug.c
+++ b/
arch/x86/platform/atom/punit_atom_debug.c
@@
-115,7
+115,7
@@
static struct dentry *punit_dbg_file;
static int punit_dbgfs_register(struct punit_device *punit_device)
{
- st
atic st
ruct dentry *dev_state;
+ struct dentry *dev_state;
punit_dbg_file = debugfs_create_dir("punit_atom", NULL);
if (!punit_dbg_file)