summary refs log tree commit diff stats
path: root/hw/core
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-10-26 22:55:46 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-07 17:24:29 +0400
commitf0d753b1c1e6c334cd089be97a0eb9f1bc415559 (patch)
treef3b22607169c34e7b9d6ea9f365676e9e03781c0 /hw/core
parent70f3d674bc2daac865fb75878030c063697fd16a (diff)
downloadfocaccia-qemu-f0d753b1c1e6c334cd089be97a0eb9f1bc415559.tar.gz
focaccia-qemu-f0d753b1c1e6c334cd089be97a0eb9f1bc415559.zip
qdev/qom: remove some TODO limitations now that PROP_PTR is gone
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/qdev.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index aa3ccbf2ec..9f1753f5cf 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -736,14 +736,6 @@ void qdev_property_add_static(DeviceState *dev, Property *prop,
     if (prop->info->create) {
         prop->info->create(obj, prop, &local_err);
     } else {
-        /*
-         * TODO qdev_prop_ptr does not have getters or setters.  It must
-         * go now that it can be replaced with links.  The test should be
-         * removed along with it: all static properties are read/write.
-         */
-        if (!prop->info->get && !prop->info->set) {
-            return;
-        }
         object_property_add(obj, prop->name, prop->info->name,
                             prop->info->get, prop->info->set,
                             prop->info->release,