diff mbox series

drivers/watchdog: fix checkpatch error

Message ID 20230922201025.64164-1-w1s2d5@gmail.com (mailing list archive)
State New, archived
Headers show
Series drivers/watchdog: fix checkpatch error | expand

Commit Message

Nikita Bune Sept. 22, 2023, 8:10 p.m. UTC
Fix checkpatch ERROR: do not initialise statics to 0

Signed-off-by: Nikita Bune <w1s2d5@gmail.com>
---
 drivers/watchdog/uniphier_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Guenter Roeck Sept. 22, 2023, 8:33 p.m. UTC | #1
On 9/22/23 13:10, Nikita Bune wrote:
> Fix checkpatch ERROR: do not initialise statics to 0
> 
> Signed-off-by: Nikita Bune <w1s2d5@gmail.com>

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

Guenter

> ---
>   drivers/watchdog/uniphier_wdt.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/uniphier_wdt.c b/drivers/watchdog/uniphier_wdt.c
> index 8e9242c23022..7a080600d865 100644
> --- a/drivers/watchdog/uniphier_wdt.c
> +++ b/drivers/watchdog/uniphier_wdt.c
> @@ -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 {
diff mbox series

Patch

diff --git a/drivers/watchdog/uniphier_wdt.c b/drivers/watchdog/uniphier_wdt.c
index 8e9242c23022..7a080600d865 100644
--- a/drivers/watchdog/uniphier_wdt.c
+++ b/drivers/watchdog/uniphier_wdt.c
@@ -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 {