]> xenbits.xensource.com Git - libvirt.git/commit
qemu_command: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 12:35:08 +0000 (08:35 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 16:52:27 +0000 (12:52 -0400)
commit39b9c1214827f0d83cd43d202fa2ef12b67d8f34
tree020c50067f42784e694ed9fba92ba0a6ea8a1339
parent9ba04deca686d25223e66238d5e308e66c7c8cdf
qemu_command: Resolve Coverity REVERSE_INULL

In qemuNetworkIfaceConnect() a call to virNetDevBandwidthSet() is
made where the function prototype requires the first parameter
(net->ifname) to be non NULL.  Coverity complains that the subsequent
non NULL check for net->ifname prior to the next call gets flagged as
an unnecessary check.  Resolve by removing the extra check
src/qemu/qemu_command.c