From: Peter Krempa Date: Wed, 4 Aug 2021 09:14:18 +0000 (+0200) Subject: virNWFilterRuleDefToRuleInst: Remove pointless assignment X-Git-Tag: v7.7.0-rc1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b450b0ad1fca16f08ec6b9cf4cefceeda09e659;p=thirdparty%2Flibvirt.git virNWFilterRuleDefToRuleInst: Remove pointless assignment 'ruleinst' is NULLed by VIR_APPEND_ELEMENT Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- diff --git a/tests/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c index 33648a5077..7fefd3ce75 100644 --- a/tests/nwfilterxml2firewalltest.c +++ b/tests/nwfilterxml2firewalltest.c @@ -214,7 +214,6 @@ virNWFilterRuleDefToRuleInst(virNWFilterDef *def, goto cleanup; VIR_APPEND_ELEMENT(inst->rules, inst->nrules, ruleinst); - ruleinst = NULL; ret = 0; cleanup: