]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: octeon-wdt: don't print out if registering watchdog fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 4 Oct 2024 20:03:09 +0000 (22:03 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:35 +0000 (10:04 +0100)
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>
drivers/watchdog/octeon-wdt-main.c

index 52d49e4e35a0c343924454e4cd8ec330434aa97f..0615bb8160821231ad54bdf14e4426ba0ab1da92 100644 (file)
@@ -559,10 +559,8 @@ static int __init octeon_wdt_init(void)
        watchdog_set_nowayout(&octeon_wdt, nowayout);
 
        ret = watchdog_register_device(&octeon_wdt);
-       if (ret) {
-               pr_err("watchdog_register_device() failed: %d\n", ret);
+       if (ret)
                return ret;
-       }
 
        if (disable) {
                pr_notice("disabled\n");