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 <[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 fb2de4e commit ebc7530

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)