From c3a0808999b00363b1d16c207407361bf2f70060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Sat, 30 Dec 2023 22:45:37 -0500 Subject: [PATCH] simplify if statement --- libc/runtime/cosmo2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libc/runtime/cosmo2.c b/libc/runtime/cosmo2.c index f90a21737..c1f5b9b34 100644 --- a/libc/runtime/cosmo2.c +++ b/libc/runtime/cosmo2.c @@ -117,10 +117,7 @@ wontreturn textstartup void cosmo(long *sp, struct Syslib *m1, char *exename, __program_executable_name = exename; program_invocation_name = argv[0]; __oldstack = (intptr_t)sp; - if (os) { - hostos = os; - } else { - /* old/no loader */ + if (!(hostos = os)) { if (SupportsFreebsd() && is_freebsd) { hostos = _HOSTFREEBSD; } else if (SupportsXnu() && m1) {