The noRefresh member of _dnsmasqCaps struct is set only after it
was checked for and is never checked again. This is needless and
the member can be removed. There is no way that
dnsmasqCapsRefreshInternal() can be called after
dnsmasqCapsSetFromBuffer().
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
struct _dnsmasqCaps {
virObject parent;
char *binaryPath;
- bool noRefresh;
unsigned long version;
};
int len;
const char *p;
- caps->noRefresh = true;
-
p = STRSKIP(buf, DNSMASQ_VERSION_STR);
if (!p)
goto error;
g_autofree char *version = NULL;
g_autofree char *complete = NULL;
- if (!caps || caps->noRefresh)
+ if (!caps)
return 0;
/* Make sure the binary we are about to try exec'ing exists.