summaryrefslogtreecommitdiff
path: root/hw/msix.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-05 08:11:39 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-05 08:11:39 +0000
commit98846d73cb07437950dc52a839f4bd217ad02b2e (patch)
treebdc67291db7d096b7795dc691be309930b47f4b8 /hw/msix.c
parent8676188b751ca28ab7c42baf20ea64391625b44d (diff)
Fix Sparse warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/msix.c')
-rw-r--r--hw/msix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/msix.c b/hw/msix.c
index 4ab6da680..c03184276 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -296,8 +296,9 @@ void msix_load(PCIDevice *dev, QEMUFile *f)
{
unsigned n = dev->msix_entries_nr;
- if (!dev->cap_present & QEMU_PCI_CAP_MSIX)
+ if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) {
return;
+ }
qemu_get_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE);
qemu_get_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8);