OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fd20b
)
watchdog: pika_wdt: drop pointless static qualifier in pikawdt_init
author
YueHaibing
<yuehaibing@huawei.com>
Wed, 23 Jan 2019 09:05:24 +0000
(17:05 +0800)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/drivers/watchdog/pika_wdt.c
b/drivers/watchdog/pika_wdt.c
index
e0a6f8c
..
bb97f5b
100644
(file)
--- 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");