]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virdnsmasq: Drop !caps check from dnsmasqCapsRefreshInternal()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jan 2022 12:20:50 +0000 (13:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Jan 2022 14:19:47 +0000 (15:19 +0100)
There is no way that the dnsmasqCapsRefreshInternal() function
can be called with @caps == NULL. Therefore, drop the if() that
checks for that.

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

index a8fb91ed2be2521ad4e51c7bad20b5c158c2b43d..9f50ce77558e1ececa87138e4c9e517d36f695d7 100644 (file)
@@ -653,9 +653,6 @@ dnsmasqCapsRefreshInternal(dnsmasqCaps *caps)
     g_autofree char *version = NULL;
     g_autofree char *complete = NULL;
 
-    if (!caps)
-        return 0;
-
     /* Make sure the binary we are about to try exec'ing exists.
      * Technically we could catch the exec() failure, but that's
      * in a sub-process so it's hard to feed back a useful error.