[PATCH 1/3] virdnsmasq: Drop @binaryPath argument from dnsmasqCapsNewEmpty()

Andrea Bolognani abologna at redhat.com
Mon Jan 10 17:39:11 UTC 2022


On Mon, Jan 10, 2022 at 04:44:53PM +0100, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
>  src/util/virdnsmasq.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Andrea Bolognani <abologna at redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list