|
From: | Avi Kivity |
Subject: | [Qemu-devel] Re: [Qemu-commits] [COMMIT 98846d7] Fix Sparse warning |
Date: | Sun, 05 Jul 2009 12:00:37 +0300 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 07/05/2009 11:28 AM, Anthony Liguori wrote:
From: Blue Swirl<address@hidden> Signed-off-by: Blue Swirl<address@hidden> diff --git a/hw/msix.c b/hw/msix.c index 4ab6da6..c031842 100644 --- 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; + }
This is more than a sparse warning fix; it fixes a genuine bug. -- error compiling committee.c: too many arguments to function
[Prev in Thread] | Current Thread | [Next in Thread] |