mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: remove unused 'cfg' variables
Unused as of:
commit effeee5c2f
qemu: driver: Use 'qemuDomainSaveStatus' for saving status XML
This function extracts the config from the vm object, so the caller
no longer needs to do it.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8120df4e85
commit
09b08e9a80
@ -1816,7 +1816,6 @@ static int qemuDomainSuspend(virDomainPtr dom)
|
|||||||
qemuDomainObjPrivate *priv;
|
qemuDomainObjPrivate *priv;
|
||||||
virDomainPausedReason reason;
|
virDomainPausedReason reason;
|
||||||
int state;
|
int state;
|
||||||
g_autoptr(virQEMUDriverConfig) cfg = NULL;
|
|
||||||
|
|
||||||
if (!(vm = qemuDomainObjFromDomain(dom)))
|
if (!(vm = qemuDomainObjFromDomain(dom)))
|
||||||
return -1;
|
return -1;
|
||||||
@ -1824,7 +1823,6 @@ static int qemuDomainSuspend(virDomainPtr dom)
|
|||||||
if (virDomainSuspendEnsureACL(dom->conn, vm->def) < 0)
|
if (virDomainSuspendEnsureACL(dom->conn, vm->def) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
cfg = virQEMUDriverGetConfig(driver);
|
|
||||||
priv = vm->privateData;
|
priv = vm->privateData;
|
||||||
|
|
||||||
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_SUSPEND) < 0)
|
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_SUSPEND) < 0)
|
||||||
@ -1869,13 +1867,10 @@ static int qemuDomainResume(virDomainPtr dom)
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
int state;
|
int state;
|
||||||
int reason;
|
int reason;
|
||||||
g_autoptr(virQEMUDriverConfig) cfg = NULL;
|
|
||||||
|
|
||||||
if (!(vm = qemuDomainObjFromDomain(dom)))
|
if (!(vm = qemuDomainObjFromDomain(dom)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
cfg = virQEMUDriverGetConfig(driver);
|
|
||||||
|
|
||||||
if (virDomainResumeEnsureACL(dom->conn, vm->def) < 0)
|
if (virDomainResumeEnsureACL(dom->conn, vm->def) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
@ -20226,8 +20221,6 @@ qemuDomainAgentSetResponseTimeout(virDomainPtr dom,
|
|||||||
int timeout,
|
int timeout,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
virQEMUDriver *driver = dom->conn->privateData;
|
|
||||||
g_autoptr(virQEMUDriverConfig) cfg = NULL;
|
|
||||||
virDomainObj *vm = NULL;
|
virDomainObj *vm = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
@ -20244,8 +20237,6 @@ qemuDomainAgentSetResponseTimeout(virDomainPtr dom,
|
|||||||
if (!(vm = qemuDomainObjFromDomain(dom)))
|
if (!(vm = qemuDomainObjFromDomain(dom)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
cfg = virQEMUDriverGetConfig(driver);
|
|
||||||
|
|
||||||
if (virDomainAgentSetResponseTimeoutEnsureACL(dom->conn, vm->def) < 0)
|
if (virDomainAgentSetResponseTimeoutEnsureACL(dom->conn, vm->def) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user