Commit
81fb440b further qualified an if statement by adding the
boolean saveVlan to the condition. Coverity pointed out that this
change in the logic eliminated the need to check saveVlan in an
argument to virAsprintf().
goto cleanup;
/* get admin MAC and vlan tag */
- if (virNetDevGetVfConfig(pfDevName, vf, &oldMAC,
- saveVlan ? &oldVlanTag : NULL) < 0) {
+ if (virNetDevGetVfConfig(pfDevName, vf, &oldMAC, &oldVlanTag) < 0)
goto cleanup;
- }
if (virJSONValueObjectAppendString(configJSON,
VIR_NETDEV_KEYNAME_ADMIN_MAC,