Skip to contentSkip to conversation

Fix Sparse warning

Qemu-devel Avi Kivity 1 participant 1 message Jul 5, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Avi Kivity

author
#1 lore raw
Quoted 9 lines · Anthony Liguori

From: Blue Swirl<[email protected]>

hw/msix.c +0 -0
index 4ab6da6..c031842 100644

hw/msix.c void msix_load(PCIDevice *dev, QEMUFile *f) · line 303

Quoted 9 lines
hw/msix.c +2 -1
@@ -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;
+    }
 
 

This is more than a sparse warning fix; it fixes a genuine bug.

Signature · 1 line
error compiling committee.c: too many arguments to function