qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] test-vmstate: remove unnecessary code in match_interval_mapping_node
@ 2020-09-10  2:38 Pan Nengyuan
  2020-09-10  4:48 ` Li Qiang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pan Nengyuan @ 2020-09-10  2:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: thuth, zhang.zhanghailiang, quintela, qemu-trivial, Pan Nengyuan,
	f4bug, dgilbert, eric.auger, kuhn.chenqun

'str' is not used in match_interval_mapping_node(), remove it.

Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
---
 tests/test-vmstate.c | 3 ---
 1 file changed, 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;
 
-- 
2.21.0.windows.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-10  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-10  2:38 [PATCH] test-vmstate: remove unnecessary code in match_interval_mapping_node Pan Nengyuan
2020-09-10  4:48 ` Li Qiang
2020-09-10  4:49 ` Thomas Huth
2020-09-10  6:55 ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).