[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/7] cs4231: Get rid of empty property array
From: |
Gerd Hoffmann |
Subject: |
[PULL 5/7] cs4231: Get rid of empty property array |
Date: |
Tue, 15 Dec 2020 14:48:24 +0100 |
From: Eduardo Habkost <ehabkost@redhat.com>
An empty props array is unnecessary, we can just not call
device_class_set_props().
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-id: 20201211220529.2290218-2-ehabkost@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/audio/cs4231.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/hw/audio/cs4231.c b/hw/audio/cs4231.c
index 8e9554ce9bcd..209c05a0a0d5 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 = {
--
2.27.0
- [PULL 0/7] Audio 20201215 patches, Gerd Hoffmann, 2020/12/15
- [PULL 1/7] coreaudio: rename misnamed variable fake_as, Gerd Hoffmann, 2020/12/15
- [PULL 4/7] audio: remove unused function audio_is_cleaning_up(), Gerd Hoffmann, 2020/12/15
- [PULL 5/7] cs4231: Get rid of empty property array,
Gerd Hoffmann <=
- [PULL 3/7] coreaudio: always stop audio playback on shut down, Gerd Hoffmann, 2020/12/15
- [PULL 2/7] coreaudio: don't start playback in init routine, Gerd Hoffmann, 2020/12/15
- [PULL 7/7] audio: add sanity check, Gerd Hoffmann, 2020/12/15
- [PULL 6/7] audio: Simplify audio_bug() removing old code, Gerd Hoffmann, 2020/12/15
- Re: [PULL 0/7] Audio 20201215 patches, Peter Maydell, 2020/12/15