qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] qemu/virtio-pci: remove unnecessary check


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH] qemu/virtio-pci: remove unnecessary check
Date: Tue, 22 Sep 2009 13:35:28 +0300
User-agent: Mutt/1.5.19 (2009-01-05)

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>
---
 hw/virtio-pci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

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 = {
-- 
1.6.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]