[libvirt] [PATCHv3 1/3] qemu: hostdev: Refactor PCI passhrough handling

Peter Krempa pkrempa at redhat.com
Tue Oct 8 13:31:38 UTC 2013


On 10/07/13 16:59, Eric Blake wrote:
> On 10/07/2013 08:16 AM, Peter Krempa wrote:
> 
...
>>> Again - I dislike having these sentinel values showing up in switch
>>> statements (searching the source I see it a lot), as it could lead
>>> someone to believe that those are actually valid values. I may be
>>> outvoted on this though :-)
>>
>> I think that the benefits of the compiler warning in case you add a new
>> variable on places you might have forgotten outweigh a few occurences of
>> unused type in the code.
> 
> Agreed.  Maybe we should patch HACKING to capture the outcome of this
> discussion.
> 

I pushed this one with two trivial fixes according to ACK from Laine.

Fixes done were: Removed double space in one of the conditions and
changed the second addition of backend variable to non-pointer.

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131008/ac2913d2/attachment-0001.sig>


More information about the libvir-list mailing list