summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-01-23 17:05:24 +0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-03-02 15:28:18 +0100
commitda39013e8e6aecc7afe0654ad87cf2f0fad993af (patch)
treef803b1105c7f3ed7501d891f23077178cef31484 /drivers/watchdog
parent00fd20b4d94ef4200993eab13a108d7c68b0202b (diff)
downloadlinux-da39013e8e6aecc7afe0654ad87cf2f0fad993af.tar.bz2
watchdog: pika_wdt: drop pointless static qualifier in pikawdt_init
There is no need to have the 'post1' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/pika_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c
index e0a6f8c0f03c..bb97f5b2f7eb 100644
--- a/drivers/watchdog/pika_wdt.c
+++ b/drivers/watchdog/pika_wdt.c
@@ -225,7 +225,7 @@ static int __init pikawdt_init(void)
{
struct device_node *np;
void __iomem *fpga;
- static u32 post1;
+ u32 post1;
int ret;
np = of_find_compatible_node(NULL, NULL, "pika,fpga");