From: Laine Stump Date: Fri, 29 Jan 2021 04:39:33 +0000 (-0500) Subject: conf: eliminate pointless setting of interface model X-Git-Tag: v7.1.0-rc1~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2adfd26ec92875c853153510ea8edefa7210fe09;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Michal Privoznik --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 658f563b36..1a163857ca 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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: