Skip to contentSkip to conversation

tests/migration-test: Remove arch_target

PATCH New Peter Xu 1 participant 1 message Jul 26, 2023

lore
Share & tools
lore

Peter Xu

author
#0 lore raw

PATCH 1/1 tests/migration-test: Remove arch_target

It is always NULL, so drop it.

Cc Juan Quintela <[email protected]>
Fixes Coverity CID 1518101
---
 tests/qtest/migration-test.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/qtest/migration-test.c +1 -3
index 62d3f37021..7ce1379ba8 100644
@@ -701,7 +701,6 @@ static int test_migrate_start(QTestState **from, QTestState **to,
                               const char *uri, MigrateStart *args)
 {
     g_autofree gchar *arch_source = NULL;
-    g_autofree gchar *arch_target = NULL;
     /* options for source and target */
     g_autofree gchar *arch_opts = NULL;
     g_autofree gchar *cmd_source = NULL;
@@ -810,12 +809,11 @@ static int test_migrate_start(QTestState **from, QTestState **to,
                                  "-m %s "
                                  "-serial file:%s/dest_serial "
                                  "-incoming %s "
-                                 "%s %s %s %s %s",
+                                 "%s %s %s %s",
                                  args->use_dirty_ring ?
                                  ",dirty-ring-size=4096" : "",
                                  memory_size, tmpfs, uri,
                                  arch_opts ? arch_opts : "",
-                                 arch_target ? arch_target : "",
                                  shmem_opts,
                                  args->opts_target ? args->opts_target : "",
                                  ignore_stderr);
Signature · 1 line
2.41.0