mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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>
This commit is contained in:
parent
8340ce57b4
commit
9f28af4920
@ -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()))
|
||||
|
@ -77,7 +77,6 @@ mymain(void)
|
||||
{
|
||||
int ret = 0;
|
||||
g_autofree char *fakerootdir = NULL;
|
||||
g_autoptr(virQEMUDriverConfig) cfg = NULL;
|
||||
g_autoptr(GHashTable) capslatest = testQemuGetLatestCaps();
|
||||
g_autoptr(GHashTable) capscache = virHashNew(virObjectFreeHashData);
|
||||
g_autoptr(virConnect) conn = NULL;
|
||||
@ -100,7 +99,6 @@ mymain(void)
|
||||
if (qemuTestDriverInit(&driver) < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
cfg = virQEMUDriverGetConfig(&driver);
|
||||
driver.privileged = true;
|
||||
|
||||
if (!(conn = virGetConnect()))
|
||||
|
Loading…
Reference in New Issue
Block a user