From 85352471ce78d73b8306822959caace2e8880535 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Tue, 22 Sep 2009 13:35:28 +0300 Subject: 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 Signed-off-by: Anthony Liguori --- hw/virtio-pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw') diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 0b1cea9456..5c976296e3 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 = { -- cgit v1.2.3