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
This commit is contained in:
John Ferlan 2014-08-27 08:35:08 -04:00
parent 9ba04deca6
commit 39b9c12148

View File

@ -370,7 +370,7 @@ qemuNetworkIfaceConnect(virDomainDefPtr def,
false) < 0)
goto cleanup;
if (net->filter && net->ifname &&
if (net->filter &&
virDomainConfNWFilterInstantiate(conn, def->uuid, net) < 0) {
goto cleanup;
}