From: Franck Bui Date: Fri, 7 Jan 2022 08:28:44 +0000 (+0100) Subject: watchdog: shorten watchdog_set_device() X-Git-Tag: v251-rc1~546^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce08c8e97e7fbeed39c6293a72ec411b401b300;p=thirdparty%2Fsystemd.git watchdog: shorten watchdog_set_device() --- 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);