[PATCH] tests: Drop unused vm variable in testQemuMonitorCPUInfo

Jiri Denemark via Devel posted 1 patch 2 days, 15 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/0c04c02a4c283bd49641506ad53523ca1fc203fd.1756986394.git.jdenemar@redhat.com
tests/qemumonitorjsontest.c | 5 -----
1 file changed, 5 deletions(-)
[PATCH] tests: Drop unused vm variable in testQemuMonitorCPUInfo
Posted by Jiri Denemark via Devel 2 days, 15 hours ago
From: Jiri Denemark <jdenemar@redhat.com>

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 tests/qemumonitorjsontest.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
index 38779a20d0..65b14ca318 100644
--- a/tests/qemumonitorjsontest.c
+++ b/tests/qemumonitorjsontest.c
@@ -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);
 
-- 
2.51.0
Re: [PATCH] tests: Drop unused vm variable in testQemuMonitorCPUInfo
Posted by Ján Tomko via Devel 2 days, 13 hours ago
On a Thursday in 2025, Jiri Denemark via Devel wrote:
>From: Jiri Denemark <jdenemar@redhat.com>
>
>Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
>---
> tests/qemumonitorjsontest.c | 5 -----
> 1 file changed, 5 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano