]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add coverity[negative_returns] tag
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:41:01 +0000 (09:41 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Jan 2013 15:59:45 +0000 (16:59 +0100)
commit6c2e4c3856c8ed48c378bf1bf357cab46271a47a
tree8cca6f1719855a00754f0c9673b206471cc7089c
parent28cd3dc40bf34061c5c89510ae2d2b91c49e9eab
qemu: Add coverity[negative_returns] tag

This avoids "Event negative_returns: A negative constant "-1" is passed as
an argument to a parameter that cannot be negative.".  The called function
uses -1 to determine whether it needs to traverse all the hostdevs.
src/qemu/qemu_hotplug.c