summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2018-11-15 12:33:16 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2018-11-25 17:11:22 +1100
commitaf8511cf32189ba66c7e2a4146f11c86c9813ab7 (patch)
tree8dea8beb1f20ec5e4fbcae67d1ab0eb1d38ab32f
parentd64cf54e89c86487c1369991af79d8331c3e8988 (diff)
downloadlinux-af8511cf32189ba66c7e2a4146f11c86c9813ab7.tar.bz2
powerpc/85xx: Drop pointless static qualifier
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>
-rw-r--r--arch/powerpc/platforms/85xx/t1042rdb_diu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/t1042rdb_diu.c b/arch/powerpc/platforms/85xx/t1042rdb_diu.c
index dac36ba82fea..2d1652108ba1 100644
--- a/arch/powerpc/platforms/85xx/t1042rdb_diu.c
+++ b/arch/powerpc/platforms/85xx/t1042rdb_diu.c
@@ -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) {