]> Git Repo - qemu.git/commitdiff
cs4231: Get rid of empty property array
authorEduardo Habkost <[email protected]>
Fri, 11 Dec 2020 22:04:58 +0000 (17:04 -0500)
committerGerd Hoffmann <[email protected]>
Tue, 15 Dec 2020 08:21:09 +0000 (09:21 +0100)
An empty props array is unnecessary, we can just not call
device_class_set_props().

Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
Message-id: 20201211220529.2290218[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/audio/cs4231.c

index 8e9554ce9bcd4f9f0cdb8ffec0c2a8865c2b1fa5..209c05a0a0d57ba03619c2005abc0de06adf5593 100644 (file)
@@ -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 = {
This page took 0.026348 seconds and 4 git commands to generate.