mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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:
parent
9ba04deca6
commit
39b9c12148
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user