Skip to content

Commit ebc7530

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: it87_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-6-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 fb2de4e commit ebc7530

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/watchdog/it87_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,8 @@ static int __init it87_wdt_init(void)
349349

350350
watchdog_stop_on_reboot(&wdt_dev);
351351
rc = watchdog_register_device(&wdt_dev);
352-
if (rc) {
353-
pr_err("Cannot register watchdog device (err=%d)\n", rc);
352+
if (rc)
354353
return rc;
355-
}
356354

357355
pr_info("Chip IT%04x revision %d initialized. timeout=%d sec (nowayout=%d testmode=%d)\n",
358356
chip_type, chip_rev, timeout, nowayout, testmode);

0 commit comments

Comments
 (0)