From: Ivan Kruglov Date: Tue, 8 Oct 2024 16:55:39 +0000 (+0200) Subject: machine: remove redundant else if lookup_machine_by_name_or_pid() X-Git-Tag: v257-rc1~259^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18897460cf7a09170409552dcb59eb93b8605222;p=thirdparty%2Fsystemd.git machine: remove redundant else if lookup_machine_by_name_or_pid() --- diff --git a/src/machine/machine-varlink.c b/src/machine/machine-varlink.c index 26b1e841a60..0f14e3063ab 100644 --- a/src/machine/machine-varlink.c +++ b/src/machine/machine-varlink.c @@ -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;