mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
Fix Sparse warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
8676188b75
commit
98846d73cb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user