[libvirt PATCH 02/10] virNWFilterParseParamAttributes: `virHashNew` cannot return NULL

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

diff --git a/src/conf/nwfilter_params.c b/src/conf/nwfilter_params.c
index aeed0cff1f..c94e9679f8 100644
--- a/src/conf/nwfilter_params.c
+++ b/src/conf/nwfilter_params.c
@@ -702,8 +702,6 @@ virNWFilterParseParamAttributes(xmlNodePtr cur)
     virNWFilterVarValue *value;
 
     GHashTable *table = virHashNew(virNWFilterVarValueHashFree);
-    if (!table)
-        return NULL;
 
     cur = cur->children;
 
-- 
2.31.1