mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/virtio: Remove empty Property lists
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Lei Yang <leiyang@redhat.com> Link: https://lore.kernel.org/r/20241218134251.4724-12-richard.henderson@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3469bd68ea
commit
2885bf891a
2 changed files with 0 additions and 10 deletions
|
@ -48,10 +48,6 @@ static void vhost_vdpa_device_pci_instance_init(Object *obj)
|
|||
"bootindex");
|
||||
}
|
||||
|
||||
static Property vhost_vdpa_device_pci_properties[] = {
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static int vhost_vdpa_device_pci_post_init(VhostVdpaDevice *v, Error **errp)
|
||||
{
|
||||
VhostVdpaDevicePCI *dev = container_of(v, VhostVdpaDevicePCI, vdev);
|
||||
|
@ -80,7 +76,6 @@ static void vhost_vdpa_device_pci_class_init(ObjectClass *klass, void *data)
|
|||
VirtioPCIClass *k = VIRTIO_PCI_CLASS(klass);
|
||||
|
||||
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
|
||||
device_class_set_props(dc, vhost_vdpa_device_pci_properties);
|
||||
k->realize = vhost_vdpa_device_pci_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,10 +23,6 @@ typedef struct VHostUserSoundPCI VHostUserSoundPCI;
|
|||
DECLARE_INSTANCE_CHECKER(VHostUserSoundPCI, VHOST_USER_SND_PCI,
|
||||
TYPE_VHOST_USER_SND_PCI)
|
||||
|
||||
static Property vhost_user_snd_pci_properties[] = {
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void vhost_user_snd_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
|
||||
{
|
||||
VHostUserSoundPCI *dev = VHOST_USER_SND_PCI(vpci_dev);
|
||||
|
@ -44,7 +40,6 @@ static void vhost_user_snd_pci_class_init(ObjectClass *klass, void *data)
|
|||
PCIDeviceClass *pcidev_k = PCI_DEVICE_CLASS(klass);
|
||||
k->realize = vhost_user_snd_pci_realize;
|
||||
set_bit(DEVICE_CATEGORY_SOUND, dc->categories);
|
||||
device_class_set_props(dc, vhost_user_snd_pci_properties);
|
||||
pcidev_k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
|
||||
pcidev_k->device_id = 0; /* Set by virtio-pci based on virtio id */
|
||||
pcidev_k->revision = 0x00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue