aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-12-11 17:04:58 -0500
committerEduardo Habkost <ehabkost@redhat.com>2020-12-15 10:02:07 -0500
commit180c00dfc7e3acbb74a114dd9176909a77b3456e (patch)
tree40aaf4a4713182b5512a87fc3e48d0d1cdc5a5ca /hw
parentf0e34a06f6580e666a1f49d1b8315adf1d587c43 (diff)
downloadqemu-180c00dfc7e3acbb74a114dd9176909a77b3456e.zip
qemu-180c00dfc7e3acbb74a114dd9176909a77b3456e.tar.gz
qemu-180c00dfc7e3acbb74a114dd9176909a77b3456e.tar.bz2
cs4231: Get rid of empty property array
An empty props array is unnecessary, we can just not call device_class_set_props(). Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201211220529.2290218-2-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/audio/cs4231.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/audio/cs4231.c b/hw/audio/cs4231.c
index 8e9554c..209c05a 100644
--- a/hw/audio/cs4231.c
+++ b/hw/audio/cs4231.c
@@ -160,17 +160,12 @@ static void cs4231_init(Object *obj)
sysbus_init_irq(dev, &s->irq);
}
-static Property cs4231_properties[] = {
- {.name = NULL},
-};
-
static void cs4231_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->reset = cs_reset;
dc->vmsd = &vmstate_cs4231;
- device_class_set_props(dc, cs4231_properties);
}
static const TypeInfo cs4231_info = {