diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-06-04 16:53:48 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-06-07 17:19:01 +0300 |
commit | 44701ab71ad854e6be567a6294f4665f36651076 (patch) | |
tree | 6d5929f3319a0fd43539d18c79d5c541e0585938 /hw/msi.c | |
parent | 95d658002401e2e47a5404298ebe9508846e8a39 (diff) | |
download | qemu-44701ab71ad854e6be567a6294f4665f36651076.zip qemu-44701ab71ad854e6be567a6294f4665f36651076.tar.gz qemu-44701ab71ad854e6be567a6294f4665f36651076.tar.bz2 |
msi: Use msi/msix_present more consistently
Replace some open-coded msi/msix_present checks.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/msi.c')
-rw-r--r-- | hw/msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ void msi_uninit(struct PCIDevice *dev) uint16_t flags; uint8_t cap_size; - if (!(dev->cap_present & QEMU_PCI_CAP_MSI)) { + if (!msi_present(dev)) { return; } flags = pci_get_word(dev->config + msi_flags_off(dev)); |