[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231021105748.18280-1-fenghui@nfschina.com>
Date: Sat, 21 Oct 2023 18:57:48 +0800
From: fenghui <fenghui@...china.com>
To: wim@...ux-watchdog.org, linux@...ck-us.net
Cc: linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
fenghui <fenghui@...china.com>
Subject: [PATCH] watchdog_core: Remove unnecessary ‘0’ values from ret
ret is assigned first, so it does not need to initialize the assignment.
Signed-off-by: fenghui <fenghui@...china.com>
---
drivers/watchdog/watchdog_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/watchdog_core.c b/drivers/watchdog/watchdog_core.c
index 5b55ccae06d4..dceaf5cc89fd 100644
--- a/drivers/watchdog/watchdog_core.c
+++ b/drivers/watchdog/watchdog_core.c
@@ -194,7 +194,7 @@ static int watchdog_pm_notifier(struct notifier_block *nb, unsigned long mode,
void *data)
{
struct watchdog_device *wdd;
- int ret = 0;
+ int ret;
wdd = container_of(nb, struct watchdog_device, pm_nb);
--
2.11.0
Powered by blists - more mailing lists