aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPan Nengyuan <pannengyuan@huawei.com>2020-09-10 10:38:18 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-09-10 16:20:49 +0200
commit712f1974360027c7addf8366b48476b7bf684997 (patch)
tree29002c5201d194f1f0b254c9ca8bf7e30540471e /tests
parent8b39aa90e90e9c04d07b0fbb583195237f3f11fe (diff)
test-vmstate: remove unnecessary code in match_interval_mapping_node
'str' is not used in match_interval_mapping_node(), remove it. Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Reviewed-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200910023818.11880-1-pannengyuan@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-vmstate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
index f8de709a0b..1c763015d0 100644
--- a/tests/test-vmstate.c
+++ b/tests/test-vmstate.c
@@ -1055,9 +1055,6 @@ static gboolean match_interval_mapping_node(gpointer key,
TestGTreeMapping *map_a, *map_b;
TestGTreeInterval *a, *b;
struct match_node_data *d = (struct match_node_data *)data;
- char *str = g_strdup_printf("dest");
-
- g_free(str);
a = (TestGTreeInterval *)key;
b = (TestGTreeInterval *)d->key;