[libvirt PATCH 04/38] virNWFilterCreateVarsFrom: `virHashNew` cannot return NULL

Tim Wiederhake twiederh at redhat.com
Thu Jul 22 07:49:56 UTC 2021


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/nwfilter/nwfilter_gentech_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c
index da4f71daf1..dbb6b1f80e 100644
--- a/src/nwfilter/nwfilter_gentech_driver.c
+++ b/src/nwfilter/nwfilter_gentech_driver.c
@@ -200,8 +200,6 @@ virNWFilterCreateVarsFrom(GHashTable *vars1,
                           GHashTable *vars2)
 {
     GHashTable *res = virHashNew(virNWFilterVarValueHashFree);
-    if (!res)
-        return NULL;
 
     if (virNWFilterHashTablePutAll(vars1, res) < 0)
         goto error;
-- 
2.31.1




More information about the libvir-list mailing list