]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init()
authorYueHaibing <yuehaibing@huawei.com>
Mon, 18 Feb 2019 12:56:44 +0000 (12:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:16 +0000 (10:50 +0200)
commit 18dade4dd5bfd505cbe07e4896d5ba9d2bb931bd upstream.

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

Fixes: 33fb7163ad6b ("powerpc/pseries: Export raw per-CPU VPA data via debugfs")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190218125644.87448-1-yuehaibing@huawei.com
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/lpar.c

index f87a5c64e24dcf534de83255baf8d7bbd441433f..c93b9a3bf237e2b7dbbf558b004a0e1a2894035a 100644 (file)
@@ -1992,7 +1992,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;