[libvirt PATCH 21/38] virDomainMomentObjListNew: `virHashNew` cannot return NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/conf/virdomainmomentobjlist.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/conf/virdomainmomentobjlist.c b/src/conf/virdomainmomentobjlist.c
index c0896685a9..17b9c16ae7 100644
--- a/src/conf/virdomainmomentobjlist.c
+++ b/src/conf/virdomainmomentobjlist.c
@@ -274,10 +274,6 @@ virDomainMomentObjListNew(void)
 
     moments = g_new0(virDomainMomentObjList, 1);
     moments->objs = virHashNew(virDomainMomentObjListDataFree);
-    if (!moments->objs) {
-        VIR_FREE(moments);
-        return NULL;
-    }
     return moments;
 }
 
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux