[libvirt] [PATCH] pci.c: correct erroneous expression

Chris Lalancette clalance at redhat.com
Tue Jan 26 23:47:06 UTC 2010


On 01/26/2010 02:41 PM, Jim Meyering wrote:
> An expression like this, can never be true, since the RHS is nonzero:
> 
>   ... !pciRead16(dev, PCI_CLASS_DEVICE) == PCI_CLASS_BRIDGE_PCI)
> 
> This appears to be what was intended:
> 
>   pciRead16(dev, PCI_CLASS_DEVICE) != PCI_CLASS_BRIDGE_PCI)

Oops, yeah, that seems right.

ACK

-- 
Chris Lalancette




More information about the libvir-list mailing list