Commit 11dd34f3 authored by YueHaibing's avatar YueHaibing Committed by Michael Ellerman

powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init()

There is no need to have the 'struct dentry *vpa_dir' variable static
since new value always be assigned before use it.

Fixes: c6c26fb5 ("powerpc/pseries: Export raw per-CPU VPA data via debugfs")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarDaniel Axtens <dja@axtens.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190218125644.87448-1-yuehaibing@huawei.com
parent bfa2325e
...@@ -2000,7 +2000,7 @@ static int __init vpa_debugfs_init(void) ...@@ -2000,7 +2000,7 @@ static int __init vpa_debugfs_init(void)
{ {
char name[16]; char name[16];
long i; long i;
static struct dentry *vpa_dir; struct dentry *vpa_dir;
if (!firmware_has_feature(FW_FEATURE_SPLPAR)) if (!firmware_has_feature(FW_FEATURE_SPLPAR))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment