]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/85xx: Drop pointless static qualifier
authorYue Haibing <yuehaibing@huawei.com>
Thu, 15 Nov 2018 12:33:16 +0000 (12:33 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:22 +0000 (17:11 +1100)
There is no need to have the 'void __iomem *cpld_base' variable static
since new value always be assigned before use it.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/85xx/t1042rdb_diu.c

index dac36ba82fea8555576cd63c4d2e29c343b605da..2d1652108ba1509070dc6ef64622aad607bc9c7f 100644 (file)
@@ -39,7 +39,7 @@ struct device_node *cpld_node;
  */
 static void t1042rdb_set_monitor_port(enum fsl_diu_monitor_port port)
 {
-       static void __iomem *cpld_base;
+       void __iomem *cpld_base;
 
        cpld_base = of_iomap(cpld_node, 0);
        if (!cpld_base) {