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 <[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 ebc7530 commit 8904da6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)