mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: simplify condition
In qemuMigrationSrcRun, we already checked for non-NULL mig and then dereferenced it. It's only possible for mig to be NULL in the error section. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
dadfba923a
commit
451407c8c4
@ -3992,7 +3992,7 @@ qemuMigrationSrcRun(virQEMUDriverPtr driver,
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (mig && mig->nbd &&
|
||||
if (mig->nbd &&
|
||||
qemuMigrationSrcCancelDriveMirror(driver, vm, true,
|
||||
QEMU_ASYNC_JOB_MIGRATION_OUT,
|
||||
dconn) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user