[libvirt PATCH 27/38] virLockDaemonNewPostExecRestart: `virHashNew` cannot return NULL

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

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/locking/lock_daemon.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c
index f5e5375e80..fa08acbc76 100644
--- a/src/locking/lock_daemon.c
+++ b/src/locking/lock_daemon.c
@@ -211,8 +211,7 @@ virLockDaemonNewPostExecRestart(virJSONValue *object, bool privileged)
 
     g_mutex_init(&lockd->lock);
 
-    if (!(lockd->lockspaces = virHashNew(virLockDaemonLockSpaceDataFree)))
-        goto error;
+    lockd->lockspaces = virHashNew(virLockDaemonLockSpaceDataFree);
 
     if (!(child = virJSONValueObjectGet(object, "defaultLockspace"))) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-- 
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