networkRefreshDhcpDaemon: Get dnsmasq's PID once
This is a relic of commit v3.7.0-rc1~132 when getter/setter APIs for dnsmasq's PID were introduced. Previously, obj->dnsmasqPid was accessed directly. But the aforementioned commit introduced two calls to virNetworkObjGetDnsmasqPid() even though the result of the first call is stored in a variable. Remove the second call as it's unnecessary. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
004d5141c5
commit
0d0604a51a
@ -1599,7 +1599,6 @@ networkRefreshDhcpDaemon(virNetworkDriverState *driver,
|
|||||||
if (dnsmasqSave(dctx) < 0)
|
if (dnsmasqSave(dctx) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
dnsmasqPid = virNetworkObjGetDnsmasqPid(obj);
|
|
||||||
return kill(dnsmasqPid, SIGHUP);
|
return kill(dnsmasqPid, SIGHUP);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user