summaryrefslogtreecommitdiffstats
path: root/hw/acpi/core.c
diff options
context:
space:
mode:
authorEric Blake2016-06-09 18:48:36 +0200
committerMarkus Armbruster2016-07-06 10:52:04 +0200
commit09204eac9bb513e56992c00c75f32f9d4766256b (patch)
treea83c6884b990b0d3782cc1f40f69787085f4a6cd /hw/acpi/core.c
parentqapi: Add new visit_free() function (diff)
downloadqemu-09204eac9bb513e56992c00c75f32f9d4766256b.tar.gz
qemu-09204eac9bb513e56992c00c75f32f9d4766256b.tar.xz
qemu-09204eac9bb513e56992c00c75f32f9d4766256b.zip
opts-visitor: Favor new visit_free() function
Now that we have a polymorphic visit_free(), we no longer need opts_visitor_cleanup(); which in turn means we no longer need to return a subtype from opts_visitor_new() nor a public upcast function. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1465490926-28625-6-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/acpi/core.c')
-rw-r--r--hw/acpi/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/acpi/core.c b/hw/acpi/core.c
index d24b9a98c8..e890a5d675 100644
--- a/hw/acpi/core.c
+++ b/hw/acpi/core.c
@@ -239,11 +239,11 @@ void acpi_table_add(const QemuOpts *opts, Error **errp)
char unsigned *blob = NULL;
{
- OptsVisitor *ov;
+ Visitor *v;
- ov = opts_visitor_new(opts);
- visit_type_AcpiTableOptions(opts_get_visitor(ov), NULL, &hdrs, &err);
- opts_visitor_cleanup(ov);
+ v = opts_visitor_new(opts);
+ visit_type_AcpiTableOptions(v, NULL, &hdrs, &err);
+ visit_free(v);
}
if (err) {