]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virdnsmasq: Drop @binaryPath argument from dnsmasqCapsNewEmpty()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Jan 2022 15:15:29 +0000 (16:15 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Jan 2022 14:19:47 +0000 (15:19 +0100)
commita7ffa2a64793441a597e1e2869fcf940c67a359c
treef8dd9eda99d9ca5064f273913e2611f5e6f5d87c
parentce20fe5c2abd8b5bf2064452a7fc9ca54eecaf1f
virdnsmasq: Drop @binaryPath argument from dnsmasqCapsNewEmpty()

Both callers of dnsmasqCapsNewEmpty() pass DNSMASQ as an argument
which is then fed to a ternary operator which looks like this
(after substitution).

  DNSMASQ ? DNSMASQ : DNSMASQ

While I like tautologies, the code can be simplified by dropping
the argument.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/util/virdnsmasq.c