提交 98846d73 编写于 作者: B Blue Swirl

Fix Sparse warning

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 8676188b
...@@ -296,8 +296,9 @@ void msix_load(PCIDevice *dev, QEMUFile *f) ...@@ -296,8 +296,9 @@ void msix_load(PCIDevice *dev, QEMUFile *f)
{ {
unsigned n = dev->msix_entries_nr; unsigned n = dev->msix_entries_nr;
if (!dev->cap_present & QEMU_PCI_CAP_MSIX) if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) {
return; return;
}
qemu_get_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE); 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); qemu_get_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册