Commit 98846d73cb07437950dc52a839f4bd217ad02b2e

Authored by Blue Swirl
1 parent 8676188b

Fix Sparse warning

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 2 additions and 1 deletions
hw/msix.c
... ... @@ -296,8 +296,9 @@ void msix_load(PCIDevice *dev, QEMUFile *f)
296 296 {
297 297 unsigned n = dev->msix_entries_nr;
298 298  
299   - if (!dev->cap_present & QEMU_PCI_CAP_MSIX)
  299 + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) {
300 300 return;
  301 + }
301 302  
302 303 qemu_get_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE);
303 304 qemu_get_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8);
... ...