Skip to content

Commit 39885f2

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: sl28cpld_wdt: don't print out if registering watchdog fails
The core will do this already. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Michael Walle <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 74ccee5 commit 39885f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/watchdog/sl28cpld_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ static int sl28cpld_wdt_probe(struct platform_device *pdev)
198198
}
199199

200200
ret = devm_watchdog_register_device(&pdev->dev, wdd);
201-
if (ret < 0) {
202-
dev_err(&pdev->dev, "failed to register watchdog device\n");
201+
if (ret < 0)
203202
return ret;
204-
}
205203

206204
dev_info(&pdev->dev, "initial timeout %d sec%s\n",
207205
wdd->timeout, nowayout ? ", nowayout" : "");

0 commit comments

Comments
 (0)