watchdog: xen_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:28:01 +0000 (23:28 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:18 +0000 (15:13 +0200)
The core will print out details now.

Signed-off-by: Wolfram Sang <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/xen_wdt.c

index 2ba0a3c4523ceaa1a7ab3947656e2e80bbe8cba9..b343f421dc72c597e818315767ccb65d908639a3 100644 (file)
@@ -138,10 +138,8 @@ static int xen_wdt_probe(struct platform_device *pdev)
        watchdog_stop_on_unregister(&xen_wdt_dev);
 
        ret = devm_watchdog_register_device(dev, &xen_wdt_dev);
-       if (ret) {
-               dev_err(dev, "cannot register watchdog device (%d)\n", ret);
+       if (ret)
                return ret;
-       }
 
        dev_info(dev, "initialized (timeout=%ds, nowayout=%d)\n",
                 xen_wdt_dev.timeout, nowayout);