]> xenbits.xensource.com Git - libvirt.git/commit
networkRefreshDhcpDaemon: Get dnsmasq's PID once
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Apr 2023 08:10:15 +0000 (10:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Apr 2023 13:00:51 +0000 (15:00 +0200)
commit0d0604a51a5674e432335d201418cbba80899b73
tree3f1250e3f96f4b718690236f875c270b92a0507b
parent004d5141c59b08904396d53efe64ebe15f30c7b6
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>
src/network/bridge_driver.c