OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8676188
)
Fix Sparse warning
author
Blue Swirl
<blauwirbel@gmail.com>
Sun, 5 Jul 2009 08:11:39 +0000
(08:11 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 5 Jul 2009 08:11:39 +0000
(08:11 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/msix.c
patch
|
blob
|
history
diff --git
a/hw/msix.c
b/hw/msix.c
index
4ab6da6
..
c031842
100644
(file)
--- a/
hw/msix.c
+++ b/
hw/msix.c
@@
-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);