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 <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Michal Privoznik 2018-08-22 09:51:30 +02:00
parent 7e76c8ae08
commit afe3f87aad

View File

@ -650,7 +650,6 @@ static int virLockManagerLockDaemonAcquire(virLockManagerPtr lock,
memset(&args, 0, sizeof(args)); 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.name = priv->resources[i].name;
args.flags = priv->resources[i].flags; args.flags = priv->resources[i].flags;