summaryrefslogtreecommitdiff
path: root/tests/qemumigrationcookiexmltest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2021-08-24 09:31:25 +0200
committerMichal Privoznik <mprivozn@redhat.com>2021-08-26 09:16:44 +0200
commit9f28af4920342216e6a5149d2b10469e77affcbe (patch)
treeca239df5cc2f29d493832f830229808e601e1e46 /tests/qemumigrationcookiexmltest.c
parent8340ce57b4340d107bc9362553431e8c7a10ce2b (diff)
downloadlibvirt-9f28af4920342216e6a5149d2b10469e77affcbe.tar.gz
test: Drop unused @cfg from qemu*test
In qemumigrationcookiexmltest and qemustatusxml2xmltest there is @cfg variable that is unused. It's set via virQEMUDriverGetConfig() but then never used. Drop it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Diffstat (limited to 'tests/qemumigrationcookiexmltest.c')
-rw-r--r--tests/qemumigrationcookiexmltest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/qemumigrationcookiexmltest.c b/tests/qemumigrationcookiexmltest.c
index ba7088c567..6ef5dc0ad6 100644
--- a/tests/qemumigrationcookiexmltest.c
+++ b/tests/qemumigrationcookiexmltest.c
@@ -401,7 +401,6 @@ static int
mymain(void)
{
int ret = 0;
- g_autoptr(virQEMUDriverConfig) cfg = NULL;
g_autoptr(GHashTable) capslatest = NULL;
g_autoptr(virConnect) conn = NULL;
@@ -412,7 +411,6 @@ mymain(void)
if (qemuTestDriverInit(&driver) < 0)
return EXIT_FAILURE;
- cfg = virQEMUDriverGetConfig(&driver);
driver.privileged = true;
if (!(conn = virGetConnect()))