* [Qemu-devel] Re: [Qemu-commits] [COMMIT 98846d7] Fix Sparse warning
[not found] <200907050826.n658QVBa024976@d03av04.boulder.ibm.com>
@ 2009-07-05 9:00 ` Avi Kivity
0 siblings, 0 replies; only message in thread
From: Avi Kivity @ 2009-07-05 9:00 UTC (permalink / raw)
To: Blue Swirl; +Cc: qemu-devel
On 07/05/2009 11:28 AM, Anthony Liguori wrote:
> From: Blue Swirl<blauwirbel@gmail.com>
>
> Signed-off-by: Blue Swirl<blauwirbel@gmail.com>
>
> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-05 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200907050826.n658QVBa024976@d03av04.boulder.ibm.com>
2009-07-05 9:00 ` [Qemu-devel] Re: [Qemu-commits] [COMMIT 98846d7] Fix Sparse warning Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).