watchdog: shorten watchdog_set_device()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user