From: Jiri Denemark Date: Thu, 4 Sep 2025 09:36:48 +0000 (+0200) Subject: tests: Drop unused vm variable in testQemuMonitorCPUInfo X-Git-Tag: v11.8.0-rc1~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=814bec16eec8b3bd8c0f1ab8661d83e7cfb5a25e;p=thirdparty%2Flibvirt.git tests: Drop unused vm variable in testQemuMonitorCPUInfo Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko --- 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);