1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-13 17:18:01 +03:00

qemuMigrationSrcCleanup: Use 'driver' from VM private data

Access the 'driver' struct from the private data rather than the passed
opaque pointer in preparation to remove the opaque pointer.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-05-02 15:18:40 +02:00
parent 6871553c3f
commit 2f072e24db

View File

@ -2164,10 +2164,10 @@ qemuMigrationDstRun(virQEMUDriver *driver,
static void
qemuMigrationSrcCleanup(virDomainObj *vm,
virConnectPtr conn,
void *opaque)
void *opaque G_GNUC_UNUSED)
{
virQEMUDriver *driver = opaque;
qemuDomainObjPrivate *priv = vm->privateData;
virQEMUDriver *driver = priv->driver;
qemuDomainJobPrivate *jobPriv = priv->job.privateData;
VIR_DEBUG("vm=%s, conn=%p, asyncJob=%s, phase=%s",