From afe3f87aaddaba388e10b305f1b762d09917c5d9 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 22 Aug 2018 09:51:30 +0200 Subject: [PATCH] virLockManagerLockDaemonAcquire: Drop useless check The if() is completely useless since args.path is set to NULL in the line just above. Signed-off-by: Michal Privoznik Reviewed-by: John Ferlan --- src/locking/lock_driver_lockd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/locking/lock_driver_lockd.c b/src/locking/lock_driver_lockd.c index 2386b24f40..2574cd47e2 100644 --- a/src/locking/lock_driver_lockd.c +++ b/src/locking/lock_driver_lockd.c @@ -650,8 +650,7 @@ static int virLockManagerLockDaemonAcquire(virLockManagerPtr lock, memset(&args, 0, sizeof(args)); - if (priv->resources[i].lockspace) - args.path = priv->resources[i].lockspace; + args.path = priv->resources[i].lockspace; args.name = priv->resources[i].name; args.flags = priv->resources[i].flags;