aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-09-22 13:35:28 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:52 -0500
commit85352471ce78d73b8306822959caace2e8880535 (patch)
tree88d5ded6eef6d9111077fe4c50a8da42ff698500
parent5a1fc5e8529afb6041a3dfa406a94c187d2afc1d (diff)
downloadqemu-85352471ce78d73b8306822959caace2e8880535.zip
qemu-85352471ce78d73b8306822959caace2e8880535.tar.gz
qemu-85352471ce78d73b8306822959caace2e8880535.tar.bz2
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 <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/virtio-pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 0b1cea9..5c97629 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 = {