util/log: Hoist the eval of is_daemonized in qemu_set_log_internal
commitbeab3447dbb1363654760c34b53226814c64de99
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 17 Apr 2022 18:30:15 +0000 (17 11:30 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 20 Apr 2022 17:51:11 +0000 (20 10:51 -0700)
tree77a0c2aecc8d4b0b83fcb2151444e90923571e49
parent702979f736a13aded68b7a14a46a7b33b752cce5
util/log: Hoist the eval of is_daemonized in qemu_set_log_internal

Only call is_daemonized once.
We require the result on all paths after this point.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220417183019.755276-36-richard.henderson@linaro.org>
util/log.c