OSDN Git Service

watchdog: pika_wdt: drop pointless static qualifier in pikawdt_init
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 Jan 2019 09:05:24 +0000 (17:05 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 2 Mar 2019 14:28:18 +0000 (15:28 +0100)
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>
drivers/watchdog/pika_wdt.c

index e0a6f8c..bb97f5b 100644 (file)
@@ -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");