Skip to contentSkip to conversation

drivers/watchdog: fix checkpatch error

PATCH In review Nikita Bune 2 participants 2 messages Sep 22, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/watchdog: fix checkpatch error

Fix checkpatch ERROR: do not initialise statics to 0

---
 drivers/watchdog/uniphier_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/uniphier_wdt.c +1 -1
index 8e9242c23022..7a080600d865 100644
@@ -41,7 +41,7 @@
 #define WDT_PERIOD_MIN			1
 #define WDT_PERIOD_MAX			128
 
-static unsigned int timeout = 0;
+static unsigned int timeout;
 static bool nowayout = WATCHDOG_NOWAYOUT;
 
 struct uniphier_wdt_dev {
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 3 lines · Nikita Bune

Fix checkpatch ERROR: do not initialise statics to 0

Not applying. Please stop submitting such cosmetic patches.
Also please note that the subject should start with "<subsystem>: <driver>:".

Guenter

Quoted 17 lines
---
  drivers/watchdog/uniphier_wdt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/uniphier_wdt.c +1 -1
index 8e9242c23022..7a080600d865 100644
@@ -41,7 +41,7 @@
  #define WDT_PERIOD_MIN			1
  #define WDT_PERIOD_MAX			128
 
-static unsigned int timeout = 0;
+static unsigned int timeout;
  static bool nowayout = WATCHDOG_NOWAYOUT;
 
  struct uniphier_wdt_dev {