[libvirt PATCH 08/10] virNWFilterDoInstantiate: `virHashNew` cannot return NULL

Tim Wiederhake posted 10 patches 4 years, 6 months ago
[libvirt PATCH 08/10] virNWFilterDoInstantiate: `virHashNew` cannot return NULL
Posted by Tim Wiederhake 4 years, 6 months ago
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
 src/nwfilter/nwfilter_gentech_driver.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c
index 8aa1db23d3..114c1cef4f 100644
--- a/src/nwfilter/nwfilter_gentech_driver.c
+++ b/src/nwfilter/nwfilter_gentech_driver.c
@@ -519,11 +519,6 @@ virNWFilterDoInstantiate(virNWFilterTechDriver *techdriver,
 
     memset(&inst, 0, sizeof(inst));
 
-    if (!missing_vars) {
-        rc = -1;
-        goto error;
-    }
-
     rc = virNWFilterDetermineMissingVarsRec(filter,
                                             binding->filterparams,
                                             missing_vars,
-- 
2.31.1