OSDN Git Service

test-vmstate: remove unnecessary code in match_interval_mapping_node
authorPan Nengyuan <pannengyuan@huawei.com>
Thu, 10 Sep 2020 02:38:18 +0000 (10:38 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 10 Sep 2020 14:20:49 +0000 (16:20 +0200)
'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>
tests/test-vmstate.c

index f8de709..1c76301 100644 (file)
@@ -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;