]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virSecuritySELinuxLXCInitialize: `virHashNew` cannot return NULL
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 11:32:29 +0000 (13:32 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Fri, 23 Jul 2021 09:32:12 +0000 (11:32 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/security/security_selinux.c

index 0c2cf1d1c7b53839b589c536de51bc1c8979c5dc..0bff9b7bae7168e07f51ce669a5b4049a122b9df 100644 (file)
@@ -687,8 +687,7 @@ virSecuritySELinuxLXCInitialize(virSecurityManager *mgr)
         goto error;
     }
 
-    if (!(data->mcs = virHashNew(NULL)))
-        goto error;
+    data->mcs = virHashNew(NULL);
 
     return 0;