]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Drop unused vm variable in testQemuMonitorCPUInfo
authorJiri Denemark <jdenemar@redhat.com>
Thu, 4 Sep 2025 09:36:48 +0000 (11:36 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 4 Sep 2025 14:19:35 +0000 (16:19 +0200)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemumonitorjsontest.c

index 38779a20d0a93fd5677cb35339ac22a2891653f7..65b14ca318897189c06afc41cb27ca321a136d2d 100644 (file)
@@ -2360,7 +2360,6 @@ static int
 testQemuMonitorCPUInfo(const void *opaque)
 {
     const struct testCPUInfoData *data = opaque;
-    virDomainObj *vm = NULL;
     g_autofree char *queryCpusFile = NULL;
     g_autofree char *queryHotpluggableFile = NULL;
     g_autofree char *dataFile = NULL;
@@ -2395,10 +2394,6 @@ testQemuMonitorCPUInfo(const void *opaque)
     if (qemuMonitorTestAddItem(test, "query-cpus-fast", queryCpusStr) < 0)
         goto cleanup;
 
-    vm = qemuMonitorTestGetDomainObj(test);
-    if (!vm)
-        goto cleanup;
-
     rc = qemuMonitorGetCPUInfo(qemuMonitorTestGetMonitor(test),
                                &vcpus, data->maxvcpus, true);