diff mbox

qemu/virtio-pci: remove unnecessary check

Message ID 20090922103528.GA2548@redhat.com
State Superseded
Headers show

Commit Message

Michael S. Tsirkin Sept. 22, 2009, 10:35 a.m. UTC
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 <mst@redhat.com>
---
 hw/virtio-pci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 0de6908..1f14c5e 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -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 = {