Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
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