mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
qemu: remove unused cfg variables
These functions got a reference to the driver config without actually using it: processNicRxFilterChangedEvent qemuConnectDomainXMLToNative Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
88669478e9
commit
be2d71f325
@ -4607,7 +4607,6 @@ processNicRxFilterChangedEvent(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
const char *devAlias)
|
||||
{
|
||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
virDomainDeviceDef dev;
|
||||
virDomainNetDefPtr def;
|
||||
@ -4706,7 +4705,6 @@ processNicRxFilterChangedEvent(virQEMUDriverPtr driver,
|
||||
cleanup:
|
||||
virNetDevRxFilterFree(hostFilter);
|
||||
virNetDevRxFilterFree(guestFilter);
|
||||
virObjectUnref(cfg);
|
||||
}
|
||||
|
||||
|
||||
@ -7483,13 +7481,10 @@ static char *qemuConnectDomainXMLToNative(virConnectPtr conn,
|
||||
virCommandPtr cmd = NULL;
|
||||
char *ret = NULL;
|
||||
size_t i;
|
||||
virQEMUDriverConfigPtr cfg;
|
||||
virCapsPtr caps = NULL;
|
||||
|
||||
virCheckFlags(0, NULL);
|
||||
|
||||
cfg = virQEMUDriverGetConfig(driver);
|
||||
|
||||
if (virConnectDomainXMLToNativeEnsureACL(conn) < 0)
|
||||
goto cleanup;
|
||||
|
||||
@ -7549,7 +7544,6 @@ static char *qemuConnectDomainXMLToNative(virConnectPtr conn,
|
||||
virCommandFree(cmd);
|
||||
virObjectUnref(vm);
|
||||
virObjectUnref(caps);
|
||||
virObjectUnref(cfg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user