From 8ce08c8e97e7fbeed39c6293a72ec411b401b300 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 7 Jan 2022 09:28:44 +0100 Subject: [PATCH] watchdog: shorten watchdog_set_device() --- src/shared/watchdog.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c index ed2998f46cf..ba5a7e26dd2 100644 --- a/src/shared/watchdog.c +++ b/src/shared/watchdog.c @@ -156,9 +156,6 @@ int watchdog_set_device(const char *path) { int r; r = free_and_strdup(&watchdog_device, path); - if (r < 0) - return r; - if (r > 0) /* watchdog_device changed */ watchdog_fd = safe_close(watchdog_fd); -- 2.47.3