qemu/virtio-pci: remove unnecessary check
PATCH 1/1 qemu/virtio-pci: remove unnecessary check
it's safe to call msix_write_config if msix
is disabled, so call it unconditionally on
pci config write.
Signed-off-by Michael S. Tsirkin <[email protected]>
--- hw/virtio-pci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
hw/virtio-pci.c +1 -2
@@ -373,8 +373,7 @@ static void virtio_write_config(PCIDevice *pci_dev, uint32_t address, }pci_default_write_config (pci_dev, address, val, len); -if (proxy->vdev->nvectors) -msix_write_config (pci_dev, address, val, len); +msix_write_config (pci_dev, address, val, len); }static const VirtIOBindings virtio_pci_bindings = {
Signature · 1 line
1.6.2.5