soc: integrator: Drop pointless static qualifier in integrator_soc_init()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 15 Jul 2020 02:47:01 +0000 (10:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Aug 2020 06:57:05 +0000 (08:57 +0200)
There is no need to have the 'struct regmap *syscon_regmap' variable
static since new value always be assigned before use it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200715024701.28356-1-yuehaibing@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/soc/versatile/soc-integrator.c

index 7dcf77c..bab4ad8 100644 (file)
@@ -100,7 +100,7 @@ ATTRIBUTE_GROUPS(integrator);
 
 static int __init integrator_soc_init(void)
 {
-       static struct regmap *syscon_regmap;
+       struct regmap *syscon_regmap;
        struct soc_device *soc_dev;
        struct soc_device_attribute *soc_dev_attr;
        struct device_node *np;