Messages in this thread Patch in this message | | | From | YueHaibing <> | Subject | [PATCH -next] powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init() | Date | Mon, 18 Feb 2019 12:56:44 +0000 |
| |
There is no need to have the 'struct dentry *vpa_dir' variable static since new value always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- arch/powerpc/platforms/pseries/lpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index f2a9f0adc2d3..f649c1b652eb 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c @@ -1263,7 +1263,7 @@ static int __init vpa_debugfs_init(void) { char name[16]; long i; - static struct dentry *vpa_dir; + struct dentry *vpa_dir; if (!firmware_has_feature(FW_FEATURE_SPLPAR)) return 0;
| |