mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
virdnsmasq: Drop !caps check from dnsmasqCapsRefreshInternal()
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>
This commit is contained in:
parent
f947b2343a
commit
ce6bb27649
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user