]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: migration: remove unused variable
authorJán Tomko <jtomko@redhat.com>
Mon, 7 Sep 2020 09:03:38 +0000 (11:03 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 7 Sep 2020 09:03:54 +0000 (11:03 +0200)
../src/qemu/qemu_migration.c:4091:36: error: unused variable 'cfg' [-Werror,-Wunused-variable]
    g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: d92c2bbc6597fcb951b303a9122ec1ca71514d10
src/qemu/qemu_migration.c

index 03d6a522e7f7df3dd2e07dcded845f9061917ce1..a530c1758239956b30cf063d3061a8f82f7f0ae5 100644 (file)
@@ -4088,7 +4088,6 @@ qemuMigrationSrcPerformTunnel(virQEMUDriverPtr driver,
 {
     int ret = -1;
     qemuMigrationSpec spec;
-    g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
     int fds[2] = { -1, -1 };
 
     VIR_DEBUG("driver=%p, vm=%p, st=%p, cookiein=%s, cookieinlen=%d, "