Skip to content

Commit 7022274

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: gxp-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 c9e8ba3 commit 7022274

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/watchdog/gxp-wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ static int gxp_wdt_probe(struct platform_device *pdev)
151151

152152
watchdog_stop_on_reboot(&drvdata->wdd);
153153
err = devm_watchdog_register_device(dev, &drvdata->wdd);
154-
if (err) {
155-
dev_err(dev, "Failed to register watchdog device");
154+
if (err)
156155
return err;
157-
}
158156

159157
dev_info(dev, "HPE GXP watchdog timer");
160158

0 commit comments

Comments
 (0)