public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog_dev: Remove unnecessary ‘0’ values from err
@ 2023-10-21 11:05 fenghui
  2023-10-23  0:03 ` Guenter Roeck
  2023-10-24 15:55 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: fenghui @ 2023-10-21 11:05 UTC (permalink / raw)
  To: wim, linux; +Cc: linux-watchdog, linux-kernel, fenghui

err is assigned first, so it does not need to initialize the assignment.

Signed-off-by: fenghui <fenghui@nfschina.com>
---
 drivers/watchdog/watchdog_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c
index 15df74e11a59..0868ccbcf92b 100644
--- a/drivers/watchdog/watchdog_dev.c
+++ b/drivers/watchdog/watchdog_dev.c
@@ -291,7 +291,7 @@ static int watchdog_start(struct watchdog_device *wdd)
  */
 static int watchdog_stop(struct watchdog_device *wdd)
 {
-	int err = 0;
+	int err;
 
 	if (!watchdog_active(wdd))
 		return 0;
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-24 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-21 11:05 [PATCH] watchdog_dev: Remove unnecessary ‘0’ values from err fenghui
2023-10-23  0:03 ` Guenter Roeck
2023-10-24 15:55 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox