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 05fc68dc54..f5e5375e80 100644
--- a/src/locking/lock_daemon.c
+++ b/src/locking/lock_daemon.c
@@ -153,8 +153,7 @@ virLockDaemonNew(virLockDaemonConfig *config, bool privileged)
virObjectUnref(srv);
srv = NULL;
- if (!(lockd->lockspaces = virHashNew(virLockDaemonLockSpaceDataFree)))
- goto error;
+ lockd->lockspaces = virHashNew(virLockDaemonLockSpaceDataFree);
if (!(lockd->defaultLockspace = virLockSpaceNew(NULL)))
goto error;
--
2.31.1