machine: remove redundant else if lookup_machine_by_name_or_pid()

This commit is contained in:
Ivan Kruglov
2024-10-10 12:34:45 +02:00
parent 5cdb5c17d3
commit 18897460cf
+1 -1
View File
@@ -267,7 +267,7 @@ int lookup_machine_by_name_or_pid(sd_varlink *link, Manager *manager, const char
if (machine && pid_machine && machine != pid_machine)
return log_debug_errno(SYNTHETIC_ERRNO(ESRCH), "Search by machine name '%s' and pid %d resulted in two different machines", machine_name, pid);
else if (machine)
if (machine)
*ret_machine = machine;
else if (pid_machine)
*ret_machine = pid_machine;