]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virNWFilterParseParamAttributes: `virHashNew` cannot return NULL
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 08:30:34 +0000 (10:30 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Fri, 23 Jul 2021 09:27:05 +0000 (11:27 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/nwfilter_params.c

index aeed0cff1fb744f562e8d2d41798dc6f5ea8ff1f..c94e9679f84aa20792d25d83e8efc7e148385cc8 100644 (file)
@@ -702,8 +702,6 @@ virNWFilterParseParamAttributes(xmlNodePtr cur)
     virNWFilterVarValue *value;
 
     GHashTable *table = virHashNew(virNWFilterVarValueHashFree);
-    if (!table)
-        return NULL;
 
     cur = cur->children;