diff mbox series

[RFC,9/9] watchdog: sl28cpld_wdt: don't print out if registering watchdog fails

Message ID 20241004200314.5459-10-wsa+renesas@sang-engineering.com
State New
Headers show
Series watchdog: don't print out if registering watchdog fails | expand

Commit Message

Wolfram Sang Oct. 4, 2024, 8:03 p.m. UTC
The core will do this already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/watchdog/sl28cpld_wdt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Michael Walle Oct. 5, 2024, 11:19 a.m. UTC | #1
> The core will do this already.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Michael Walle <mwalle@kernel.org>

Thanks!
-michael
diff mbox series

Patch

diff --git a/drivers/watchdog/sl28cpld_wdt.c b/drivers/watchdog/sl28cpld_wdt.c
index 9ce456f09f73..8630c29818f2 100644
--- a/drivers/watchdog/sl28cpld_wdt.c
+++ b/drivers/watchdog/sl28cpld_wdt.c
@@ -198,10 +198,8 @@  static int sl28cpld_wdt_probe(struct platform_device *pdev)
 	}
 
 	ret = devm_watchdog_register_device(&pdev->dev, wdd);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to register watchdog device\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	dev_info(&pdev->dev, "initial timeout %d sec%s\n",
 		 wdd->timeout, nowayout ? ", nowayout" : "");