mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
7e76c8ae08
commit
afe3f87aad
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user