[PATCH 14/23] virNWFilterRuleDefToRuleInst: Remove pointless assignment

Peter Krempa pkrempa at redhat.com
Wed Aug 4 11:02:34 UTC 2021


'ruleinst' is NULLed by VIR_APPEND_ELEMENT

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 tests/nwfilterxml2firewalltest.c | 1 -
 1 file changed, 1 deletion(-)

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:
-- 
2.31.1




More information about the libvir-list mailing list