Fix Sparse warning
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Anthony Liguori
From: Blue Swirl<[email protected]>
Signed-off-by Blue Swirl<[email protected]>hw/msix.c +0
-0
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