From 2adfd26ec92875c853153510ea8edefa7210fe09 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Thu, 28 Jan 2021 23:39:33 -0500 Subject: [PATCH] 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 --- src/conf/domain_conf.c | 1 - 1 file changed, 1 deletion(-) 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: