mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: eliminate pointless setting of interface model
There is no point in setting the interface model to unknown during virDomainNetDefFree(), since we are about to free the object anyway (and the model isn't used anywhere in the rest of the function). Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c2e47fb334
commit
2adfd26ec9
@ -2468,7 +2468,6 @@ virDomainNetDefFree(virDomainNetDefPtr def)
|
||||
return;
|
||||
|
||||
VIR_FREE(def->modelstr);
|
||||
def->model = VIR_DOMAIN_NET_MODEL_UNKNOWN;
|
||||
|
||||
switch (def->type) {
|
||||
case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
|
||||
|
Loading…
Reference in New Issue
Block a user