Skip to content

Commit 8904da6

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: octeon-wdt: don't print out if registering watchdog fails
The core will do this already. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20241004200314.5459-7-wsa+renesas@sang-engineering.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent ebc7530 commit 8904da6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/watchdog/octeon-wdt-main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,8 @@ static int __init octeon_wdt_init(void)
559559
watchdog_set_nowayout(&octeon_wdt, nowayout);
560560

561561
ret = watchdog_register_device(&octeon_wdt);
562-
if (ret) {
563-
pr_err("watchdog_register_device() failed: %d\n", ret);
562+
if (ret)
564563
return ret;
565-
}
566564

567565
if (disable) {
568566
pr_notice("disabled\n");

0 commit comments

Comments
 (0)