[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 8535247] qemu/virtio-pci: remove unnecessary chec
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 8535247] qemu/virtio-pci: remove unnecessary check |
Date: |
Mon, 05 Oct 2009 14:53:33 -0000 |
From: Michael S. Tsirkin <address@hidden>
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
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 = {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 8535247] qemu/virtio-pci: remove unnecessary check,
Anthony Liguori <=