]> Git Repo - qemu.git/commitdiff
test-vmstate: remove unnecessary code in match_interval_mapping_node
authorPan Nengyuan <[email protected]>
Thu, 10 Sep 2020 02:38:18 +0000 (10:38 +0800)
committerLaurent Vivier <[email protected]>
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 <[email protected]>
Reviewed-by: Li Qiang <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Message-Id: <20200910023818[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
tests/test-vmstate.c

index f8de709a0b2bffc00076b354e8ff30a4f365d562..1c763015d03ca7b56cd6e6d2b48cc6a9434eeeed 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;
 
This page took 0.028467 seconds and 4 git commands to generate.