mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-16 14:41:55 -06:00
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>
This commit is contained in:
parent
f0e34a06f6
commit
180c00dfc7
1 changed files with 0 additions and 5 deletions
|
@ -160,17 +160,12 @@ static void cs4231_init(Object *obj)
|
||||||
sysbus_init_irq(dev, &s->irq);
|
sysbus_init_irq(dev, &s->irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property cs4231_properties[] = {
|
|
||||||
{.name = NULL},
|
|
||||||
};
|
|
||||||
|
|
||||||
static void cs4231_class_init(ObjectClass *klass, void *data)
|
static void cs4231_class_init(ObjectClass *klass, void *data)
|
||||||
{
|
{
|
||||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||||
|
|
||||||
dc->reset = cs_reset;
|
dc->reset = cs_reset;
|
||||||
dc->vmsd = &vmstate_cs4231;
|
dc->vmsd = &vmstate_cs4231;
|
||||||
device_class_set_props(dc, cs4231_properties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo cs4231_info = {
|
static const TypeInfo cs4231_info = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue